Calculate an isochrone from a point
RoutingIsochronePostResponse routing().isochronePost(RoutingIsochronePostParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v1/isochrone
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.routing.RoutingIsochronePostParams;
import com.plazafyi.models.routing.RoutingIsochronePostResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
PlazaClient client = PlazaOkHttpClient.fromEnv();
RoutingIsochronePostParams params = RoutingIsochronePostParams.builder()
.lat(0.0)
.lng(0.0)
.time(0.0)
.build();
RoutingIsochronePostResponse response = client.routing().isochronePost(params);
}
}{
"features": [
{
"geometry": {
"coordinates": [
2.3522,
48.8566
],
"type": "Point"
},
"properties": {
"@id": "bar",
"@type": "bar",
"amenity": "bar",
"cuisine": "bar",
"name": "bar"
},
"type": "Feature",
"id": "node/21154906"
}
],
"geometry": {
"coordinates": [
2.3522,
48.8566
],
"type": "Point"
},
"properties": {
"area_m2": 0,
"max_cost_s": 0,
"mode": "auto",
"time_seconds": 0,
"vertices_reached": 0
},
"type": "Feature"
}Returns Examples
{
"features": [
{
"geometry": {
"coordinates": [
2.3522,
48.8566
],
"type": "Point"
},
"properties": {
"@id": "bar",
"@type": "bar",
"amenity": "bar",
"cuisine": "bar",
"name": "bar"
},
"type": "Feature",
"id": "node/21154906"
}
],
"geometry": {
"coordinates": [
2.3522,
48.8566
],
"type": "Point"
},
"properties": {
"area_m2": 0,
"max_cost_s": 0,
"mode": "auto",
"time_seconds": 0,
"vertices_reached": 0
},
"type": "Feature"
}