minube / mapzen-php
Mapzen SDK for PHP - Use Mapzen in your PHP project
dev-master
2016-03-10 15:15 UTC
Requires
- php: >=5.3.3
- guzzle/guzzle: ~3.9
This package is not auto-updated.
Last update: 2026-03-12 08:34:13 UTC
README
How to use it
To extract all the points between different locations
$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();