minube/mapzen-php

Mapzen SDK for PHP - Use Mapzen in your PHP project

Installs: 19 847

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 7

Forks: 0

Open Issues: 1

pkg:composer/minube/mapzen-php

dev-master 2016-03-10 15:15 UTC

This package is not auto-updated.

Last update: 2025-10-09 06:14:21 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();