Calculate an isochrone from a point
client.routing.isochrone(RoutingIsochroneParams { lat, lng, time, mode } query, RequestOptionsoptions?): GeoJsonFeature { geometry, properties, type, 2 more }
GET/api/v1/isochrone
Calculate an isochrone from a point
import Plaza from '@plazafyi/sdk';
const client = new Plaza({
apiKey: process.env['PLAZA_API_KEY'], // This is the default and can be omitted
});
const geoJsonFeature = await client.routing.isochrone({
lat: 0,
lng: 0,
time: 0,
});
console.log(geoJsonFeature.id);