sapistudio / sapimaps
maps api providers
3.0.4
2020-06-18 09:46 UTC
Requires
- illuminate/support: ^5.4
- sapistudio/restapi: ^3.0
This package is auto-updated.
Last update: 2025-03-12 08:38:18 UTC
README
Issue following command in console:
composer require sapistudio/sapimaps
Usage
Initiate here provider
use Sapistudio\SapiMaps\Handler; $here = Handler::Here(Config::HERE_API_KEY());
Get a reverse geocode address
$address =$here->revGeocode($coordinates); // $coordinates can be an array of lat,lon , or passed as arguments
Get a static map image url with route draw
$mapRoute =$here->mapRoute($coordinates); // $coordinates must be an array of coordinates. ex: [[lat1,lon1],[lat2,lon2]..etc]