Skip to content

minube/MapzenPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Mapzen PHP

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();

About

Client to query Mapzen (Valhalla) service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages