Skip to content
GuidesPlaygroundDashboard

Calculate an isochrone from a point

GeoJsonFeature routing().isochrone(RoutingIsochroneParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/api/v1/isochrone

Calculate an isochrone from a point

ParametersExpand Collapse
RoutingIsochroneParams params
double lat

Latitude

double lng

Longitude

double time

Travel time in seconds (1-7200)

Optional<String> mode

Travel mode (auto, foot, bicycle)

ReturnsExpand Collapse
class GeoJsonFeature:
Coordinates coordinates

GeoJSON coordinates array (nesting depth varies by geometry type)

One of the following:
List<double>
List<List<double>>
List<List<List<double>>>
List<List<List<List<double>>>>
Type type
One of the following:
POINT("Point")
LINE_STRING("LineString")
POLYGON("Polygon")
MULTI_POINT("MultiPoint")
MULTI_LINE_STRING("MultiLineString")
MULTI_POLYGON("MultiPolygon")
Properties properties
Type type
Optional<String> id

Feature identifier (type/osm_id)

Optional<Long> osmId

OpenStreetMap ID

Calculate an isochrone from a point

package com.plazafyi.example;

import com.plazafyi.client.PlazaClient;
import com.plazafyi.client.okhttp.PlazaOkHttpClient;
import com.plazafyi.models.GeoJsonFeature;
import com.plazafyi.models.routing.RoutingIsochroneParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        PlazaClient client = PlazaOkHttpClient.fromEnv();

        RoutingIsochroneParams params = RoutingIsochroneParams.builder()
            .lat(0.0)
            .lng(0.0)
            .time(0.0)
            .build();
        GeoJsonFeature geoJsonFeature = client.routing().isochrone(params);
    }
}
Returns Examples