oslew docs
Console
Menu

Every endpoint

57 operations, rendered from the document the service serves at/v1/openapi.json, at commit b8f4bde-dirty. Each has its own page: parameters, schemas, the refusals it can answer with, and a real captured request and response.

The product is what a key's plan must include. A key without it gets 403with the plan that includes it named in the body — an upgrade, not a bug. no key means the route answers without one.

Geocoding

Addresses and place names to coordinates and back: forward, autocomplete, reverse, postcodes and validation.

GET/v1/autocompletesearchComplete text being typed: the last token is a prefix, prominence ranks before name length, and no confidence is claimed.
POST/v1/feedbackaddressRecord that a caller selected a geocode or autocomplete result. The anonymous query log has no click labels; this is the opt-in signal for traffic-learning the reranker. Digits in q are redacted; at is stored as a ~2 km cell.
GET/v1/geocodeaddressResolve a name, or a number and street, with optional context.
GET/v1/postcodeaddressA postcode: the centroid of its addresses, their extent, how many there are, and the administrative chain it sits in.
GET/v1/reverseaddressThe places nearest a point, nearest first.
GET/v1/slaaddressPublished hold-out accuracy bands and places scoreboard headlines: how far answers land from the truth, measured, not promised.
GET/v1/validateaddressValidate an address against the addresses and places layers: a verdict (confirmed, corrected, partial, unconfirmed), the corrected form, and each component's agreement.
POST/v1/validateaddressThe same, with the address as a JSON body of the same fields.
POST/v1/validate/commitaddressValidate an address, seal a receipt, and optionally record the accepted correction as feedback for traffic learning.

Batch

A file of addresses geocoded as one job, paced by the key's own rate.

GET/v1/batchaddressThe key's tenant's batch jobs, newest first.
POST/v1/batchaddressGeocode a file. A job id comes back at once; the rows are worked through at the rate the key's plan sustains.
GET/v1/batch/{id}addressHow a batch job is going, and how many seconds are left at its paced rate.
DELETE/v1/batch/{id}addressCancel a batch job and throw its payloads away.
GET/v1/batch/{id}/resultsaddressA finished job's answers, as JSON lines or as a table.

Places

What is at or near a point: places by category, the administrative chain, the time zone, and every loaded layer at once.

GET/v1/adminplatformThe administrative chain at a point: every division containing it, outermost first.
GET/v1/hereplatformEverything known at a point, from every loaded layer: administrative chain, time zone, nearest places, nearest road, elevation and rasters, latest conditions, transit stops.
GET/v1/nearbysearchThe nearest places to a point, nearest first, optionally of one category.
GET/v1/timezoneaddressThe time zone at a point and its offsets at a timestamp.

Routing

Roads by mode: routes, travel-time matrices, isochrones, snapping, map matching and visit order.

GET/v1/isochroneroutingEvery cell reachable within a time budget of a point.
POST/v1/matchroutingMatch a GPS trace onto the roads (Newson–Krumm HMM): per point the edge and position it most likely lies on, the matched route, its length and duration, and a confidence.
GET/v1/matrixroutingTravel times between every pair of up to 500 points.
GET/v1/optimizeroutingThe fastest order to visit 2 to 500 points: a duration matrix, then nearest-neighbour, 2-opt and Or-opt (exact up to 8 points), with the legs routed.
GET/v1/routeroutingThe fastest road route between two points, each snapped to the nearest point on a road.
GET/v1/snaproutingThe nearest point on a road to a point, with the road's class and posted limit.

Transit

Timetabled transit from GTFS feeds: stops, departures and journeys, with live delays when a realtime feed is applied.

GET/v1/departuresroutingThe next scheduled departures from a stop, or from the nearest stop to a point, on the feed's calendar in its own time zone.
GET/v1/journeysroutingTransit directions (RAPTOR): the fastest journey for each number of transfers, with walking to, between and from the stops, live delays applied when a realtime feed is.
GET/v1/stopsroutingThe transit stops nearest a point, with the routes calling at each, from a GTFS feed.

Maps

The basemap as vector tiles, TileJSON, a MapLibre style, and static PNGs.

GET/v1/staticplatformA PNG of the basemap around a point: the tiles it needs, rasterised and stitched here.
GET/v1/style.jsonplatformA MapLibre GL style over the basemap: layers, colours and the source pointing back at this service.
GET/v1/tiles.jsonplatformThe TileJSON 3.0 document for the basemap: the tile URL template, the zoom range, the bounds and the attribution.
GET/v1/tiles/{z}/{x}/{y}platformOne basemap tile. y may carry an extension: .mvt or .pbf for the vector tile as stored, .png to rasterise it here.

Earth

Elevation and other rasters, station weather and air quality, and satellite scenes.

GET/v1/conditionsplatformThe latest reading of every parameter near a point, each from the nearest station carrying it.
GET/v1/elevationplatformElevation at a point, or sampled evenly along a path.
GET/v1/observationsplatformOne parameter's time series (air quality, weather) at the stations nearest a point, from a station feed.
GET/v1/rasterplatformAny named raster layer (solar irradiance, land cover, elevation) at a point or sampled evenly along a path.
GET/v1/scenesplatformSTAC items over a box or point in a time range under a cloud cover, newest first, with asset hrefs.

Events

What is happening near a point in a time range: ticketed events, earthquakes, and hours when air readings reached alert levels.

GET/v1/eventsplatformEvents near a point or in a box overlapping a time range: ticketed events, earthquakes, and hours when air readings reached a city's alert level.

Maritime

AIS vessel positions: latest fixes, tracks, zone crossings and traffic density.

GET/v1/aggregateplatformVessel traffic under a cell rolled up by cell and time bucket: exact position counts, and a bound on distinct vessels.
GET/v1/crossingsplatformZone entries, exits and dwells along a vessel's track, against the maritime zone layers.
GET/v1/trackplatformA vessel's positions in a time range, by time.
GET/v1/vesselplatformA vessel's last known position.
GET/v1/vesselsplatformEach vessel's latest AIS position in a cell around a point during a time range.

Geolocation

A position from the Wi-Fi access points and cell towers a device sees.

POST/v1/locateplatformA position from the Wi-Fi access points and cell towers a device sees, against a beacon feed: a weighted centroid, an accuracy radius, and the ids no feed knew.

Compatibility

Other providers' request and response shapes over this service's data, at their paths.

GET/compat/google/maps/api/geocode/jsonaddressThe Google Geocoding API's shape over this service's data: results and a status, at their path.
GET/compat/locationiq/v1/reverse.phpaddressLocationIQ's reverse.php: one object, as theirs is.
GET/compat/locationiq/v1/search.phpaddressLocationIQ's search.php: the Nominatim shape at their path, with key accepted and ignored.
GET/compat/mapbox/geocoding/v5/mapbox.places/{search_text}addressMapbox Geocoding v5's shape over this service's data: a FeatureCollection, at their path. Free text forward, lon,lat reverse, as they do it.
GET/compat/nominatim/reverseaddressNominatim's reverse shape: one object, not an array, as theirs is.
GET/compat/nominatim/searchaddressNominatim's search shape over this service's data: an array of objects with string coordinates and a boundingbox.

Operator

Feed ingestion — live traffic and GTFS-Realtime — which changes what one pod answers. Enterprise only.

GET/v1/trafficoperatorWhether live weights are in force, and which engine answers profile=live.
POST/v1/trafficoperatorApply a traffic feed: roads named by a point (or a stretch between two) with a speed or a factor on the release's time. Live routes answer by Dijkstra at once and by the hierarchy once it is contracted in the background. With ?format=tomtom or ?format=here the body is that vendor's flow JSON as returned by its API.
DELETE/v1/trafficoperatorDiscard the live weights.
GET/v1/transit_rtoperatorWhether live transit delays are in force, per loaded feed.
POST/v1/transit_rtoperatorApply a GTFS-Realtime FeedMessage (protobuf body): trip updates become delays and skipped calls that departures apply on top of the schedule, for the feed whose trips it names.
DELETE/v1/transit_rtoperatorDrop every live transit delay.

Service

Health, and pricing a migration before there is a key.

GET/v1/healthno keyThe index the service answers from.
GET/v1/migrateno keyPaste a request you already make to another provider; get this service's equivalent, every parameter that does not carry over and why, and what the month costs either way.

The service, in its own words

The introduction of the OpenAPI document, as it is served:

Geocoding, search, routing, transit, maps, earth observation and maritime data from one index. Address results carry calibrated confidence, hierarchy, evidence, provenance and a licence code; tied_at_top says when the query does not determine one place.

Plans and limits

Capacity is sold, not calls. A plan grants a set of products — address, search, routing, platform, and on Enterprise operator — each with a sustained requests-per-second and a burst. There is no monthly quota anywhere, and no request is ever refused for having used one.

Every route belongs to exactly one product, and each operation says which in x-oslew-product:

  • address: GET /v1/geocode, GET /v1/reverse, GET /v1/postcode, GET /v1/validate, POST /v1/validate, POST /v1/validate/commit, POST /v1/feedback, GET /v1/sla, POST /v1/batch, GET /v1/batch, GET /v1/batch/{id}, GET /v1/batch/{id}/results, DELETE /v1/batch/{id}, GET /v1/timezone, GET /compat/google/maps/api/geocode/json, GET /compat/mapbox/geocoding/v5/mapbox.places/{search_text}, GET /compat/nominatim/search, GET /compat/nominatim/reverse, GET /compat/locationiq/v1/search.php, GET /compat/locationiq/v1/reverse.php
  • search: GET /v1/autocomplete, GET /v1/nearby
  • routing: GET /v1/route, GET /v1/matrix, GET /v1/isochrone, GET /v1/snap, POST /v1/match, GET /v1/optimize, GET /v1/stops, GET /v1/departures, GET /v1/journeys
  • platform: GET /v1/admin, GET /v1/here, GET /v1/tiles/{z}/{x}/{y}, GET /v1/tiles.json, GET /v1/style.json, GET /v1/static, GET /v1/elevation, GET /v1/raster, GET /v1/conditions, GET /v1/observations, GET /v1/scenes, GET /v1/events, GET /v1/vessels, GET /v1/vessel, GET /v1/track, GET /v1/crossings, GET /v1/aggregate, POST /v1/locate
  • operator (Enterprise only): GET /v1/traffic, POST /v1/traffic, DELETE /v1/traffic, GET /v1/transit_rt, POST /v1/transit_rt, DELETE /v1/transit_rt
  • No key: GET /v1/health, GET /v1/migrate

This document itself, at /v1/openapi.json, needs no key either.

Authenticate with Authorization: Bearer sk_live_… (or sk_test_…). A key in the query string is never read.

Status Meaning What to do
401 no key, or one that is unknown, revoked or suspended present a key
403 the plan does not include this product, or the request is larger than it allows the body names the plan that does
429 this product's bucket is empty wait the seconds in Retry-After; nothing is used up
503 the pod cannot reach the control plane and its entitlements are too old to trust retry

Admitted requests to keyed routes carry RateLimit-Limit (the sustained rate), RateLimit-Remaining (tokens left) and RateLimit-Reset (seconds until the bucket is full again), with X-RateLimit-* aliases. A 429 adds Retry-After. The names follow the IETF RateLimit header fields draft.

Why this page is generated

A hand-written reference is a second description of the service, and two descriptions disagree the moment one of them is edited. This one is a build artefact of the same document that generates the Python and TypeScript clients, so all three describe one thing or none of them builds.