library mapzen-php
Mapzen SDK for PHP - Use Mapzen in your PHP project
minube/mapzen-php
Mapzen SDK for PHP - Use Mapzen in your PHP project
- Thursday, March 10, 2016
- by devaddiction
- Repository
- 8 Watchers
- 1 Stars
- 14,745 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 1 Versions
- 4 % Grown
Mapzen PHP
How to use it
To extract all the points between different locations, (*1)
$client = new \Mapzen\MapzenClient($apiKey);
$turnByTurn = new \Mapzen\Request\TurnByTurn();
foreach ($points as $point) {
$turnByTurn->addLocation($point['latitude'], $point['longitude']);
}
$result = $client->turnByTurn($turnByTurn);
$points = $result->getDecodedRoutePoints();