isochrone
Generate reachability polygons for time or distance contours from a point. Plan delivery zones or service areas.
Instructions
Generate a reachability polygon — the geographic area reachable from a point within a given time or distance.
Returns: GeoJSON FeatureCollection with one Polygon per contour. Each polygon is the boundary of the reachable area.
CONTOURS — you must provide EITHER contours_minutes OR contours_meters, not both and not neither:
contours_minutes: [5, 10, 15] returns 3 nested polygons for 5, 10, 15 min reach (max 4 values, max 60 min each)
contours_meters: [500, 1000, 2000] returns polygons for 500m, 1km, 2km reach (max 4 values)
OUTPUT: Pass GeoJSON directly to MapLibre addSource/addLayer, Leaflet geoJSON(), or Turf.js. USE FOR: Delivery zone visualization, service area planning, "show restaurants within 15 min walk".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Origin latitude. Range: -90 to 90. | |
| lon | Yes | Origin longitude. Range: -180 to 180. | |
| contours_minutes | No | Time-based contours in minutes. Provide this OR contours_meters, not both. Example: [5, 10, 15]. Max 4 values, max 60 each. | |
| contours_meters | No | Distance-based contours in metres. Provide this OR contours_minutes, not both. Example: [500, 1000, 2000]. Max 4 values. | |
| mode | No | Travel mode. Default: auto. |