Skip to content
GuidesPlaygroundDashboard

Calculate an isochrone from a point

$client->routing->isochrone(float lat, float lng, float time, ?string mode): GeoJsonFeature
GET/api/v1/isochrone

Calculate an isochrone from a point

ParametersExpand Collapse
lat: float

Latitude

lng: float

Longitude

time: float

Travel time in seconds (1-7200)

mode?:optional string

Travel mode (auto, foot, bicycle)

ReturnsExpand Collapse
array<string,mixed> properties
Type type
?string id

Feature identifier (type/osm_id)

?int osmID

OpenStreetMap ID

Calculate an isochrone from a point

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'My API Key', environment: 'local');

$geoJsonFeature = $client->routing->isochrone(
  lat: 0, lng: 0, time: 0, mode: 'mode'
);

var_dump($geoJsonFeature);
Returns Examples