oslew docs
Console
Menu

RoutingroutingoperationId isochrone

GET/v1/isochrone

Every cell reachable within a time budget of a point.

Send Authorization: Bearer sk_live_…. The key's plan must include therouting product; which plans do.

Explained in Isochrones and A commute-time map.

Example

Five minutes' drive from the Zócalo.

curl
curl -G "https://api.oslew.com/v1/isochrone" \
  -H "Authorization: Bearer $GEO_API_KEY" \
  --data-urlencode 'at=19.4326,-99.1332' \
  --data-urlencode 'seconds=300' \
  --data-urlencode 'level=13'
Python
from oslew import Client

# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")

answer = client.isochrone("19.4326,-99.1332", seconds=300, level=13)
TypeScript
import { Client } from "@oslew/client";

// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });

const answer = await client.isochrone("19.4326,-99.1332", { seconds: 300, level: 13 });
Response
HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 296
ratelimit-reset: 1

{
  "at": [
    19.4326,
    -99.1332
  ],
  "snapped": {
    "node": 355496,
    "lat": 19.432020221186303,
    "lon": -99.13343108985583,
    "distance_m": 68.87232944392214
  },
  "seconds": 300,
  "level": 13,
  "cells": [
    {
      "cell": 9642761832233959424,
      "seconds": 281.3,
      "bbox": [
        19.420689096751655,
        19.455007845688197,
        -99.17874350782816,
        -99.14569912676049
      ]
    },
    {
      "cell": 9642761866593697792,
      "seconds": 192.1,
      "bbox": [
        19.421249347442334,
        19.455567629601948,
        -99.16767178301049,
        -99.13462893139146
      ]
    },
    {
      "cell": 9642762141471604736,
      "seconds": 296.5,
      "bbox": [
        19.445940704223943,
        19.480259193598762,
        -99.1455329228977,
        -99.11249313370506
      ]
    },
    {
      "cell": 9642762210191081472,
      "seconds": 192.4,
      "bbox": [
        19.433594973351948,
        19.467913360473943,
        -99.15660158764146,
        -99.1235602666477
      ]
    },
    {
      "cell": 9642762244550819840,
      "seconds": 81.8,
      "bbox": [
        19.421808845778784,
        19.456126660986374,
        -99.15660158764146,
        -99.1235602666477
      ]
    }
  ],
  "polygon": [
    [
      [
        19.468714017066482,
        -99.1345465947727
      ],
      [
        19.456927032348943,
        -99.1345465947727
      ],
      [
        19.4563677158633,
        -99.14561525951646
      ],
      [
        19.444581301476948,
        -99.14561525951646
      ],
      [
        19.444021517563197,
        -99.15668545488549
      ],
      [
        19.4434609809067,
        -99.16775717970316
      ],
      [
        19.431675424876655,
        -99.16775717970316
      ],
      [
        19.41989015733076,
        -99.16775717970316
      ]
    ]
  ],
  "engine": "base/hierarchy",
  "provenance": {
    "name": "overture-transportation",
    "release": "2026-08-19.0",
    "license": "ODbL-1.0"
  },
  "took_us": 927
}

A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call. Shortened for the page: cells shows 5 of 24. Shortened for the page: polygon.0 shows 8 of 26.

Query

NameTypeDescription
at
queryrequired
string
lat,lon.
seconds
query
number
≤ 3600
default 600
level
query
integer
≥ 8, ≤ 16
default 14
Cell level of the answer; 14 is ~600 m.
profile
query
string
driving | walking | cycling | rail | live
default driving
The mode; each has its own network, speeds and access rules. live is driving on the traffic feed's weights when one is applied, and the release's weights when none is.
traffic
query
string
live
Use the traffic feed's weights when one is applied (driving only); the same as profile=live.

Responses

200 — Reached cells with earliest arrival.

  • atnumber[]required
  • cellsobject[]required
    • bboxnumber[]required
      lat_lo, lat_hi, lng_lo, lng_hi
    • cellintegerrequired
    • secondsnumberrequired
  • enginestringrequired
  • levelintegerrequired
  • polygonnumber[][][]required
    Rings of (lat, lon) outlining the cells; holes are rings too.
  • provenanceSourcerequired
    • licensestringrequired
    • namestringrequired
    • releasestringrequired
  • secondsnumberrequired
  • snappedSnaprequired
    • distance_mnumberrequired
    • latnumberrequired
    • lonnumberrequired
    • nodeintegerrequired
  • took_usintegerrequired

With RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset(and their X-RateLimit-* aliases); see rate limits.

Refusals

Every refusal is a JSON object with an error string, except where noted.

400Bad request.
401No key, or one that is unknown, revoked or suspended.
403The key's plan does not include this route's product, or the request is larger than the plan allows. The body names the plan that does.
429This product's bucket is empty: the key is going faster than its plan's sustained rate. Wait Retry-After seconds; nothing is used up. Carries Retry-After.
503The pod cannot reach the control plane and its entitlements are too old to trust. Retry.

A malformed query string or JSON body is refused by the framework before this route runs, in plain text rather than JSON; see errors.

Rendered from the OpenAPI document at commit b8f4bde-dirty; the same document is served at/v1/openapi.json and generates both clients.