minube/mapzen-php

Mapzen SDK for PHP - Use Mapzen in your PHP project

Maintainers

Package info

github.com/minube/MapzenPHP

Homepage

pkg:composer/minube/mapzen-php

Statistics

Installs: 19 847

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 1

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

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