sapistudio/sapimaps

maps api providers

3.0.4 2020-06-18 09:46 UTC

This package is auto-updated.

Last update: 2024-05-12 07:02:50 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]