oslew docs
Console
Menu

Everything at a point

GET /v1/here?at=lat,lon asks every data layer the deployment has loaded about one coordinate and returns all of their answers together: the administrative chain, the time zone, the nearest addresses and places, the nearest road, every raster's value, the latest weather and air-quality readings, and the transit stops within reach. It is one request and one token from the platform bucket, however many layers answer.

What each part covers is that layer's own coverage, listed on coverage: around Mexico City every field can answer; elsewhere some come back empty.

curl
curl -G "https://api.oslew.com/v1/here" \
  -H "Authorization: Bearer $GEO_API_KEY" \
  --data-urlencode 'at=19.4326,-99.1332' \
  --data-urlencode 'limit=3' \
  --data-urlencode 'time=1795132800'
Python
from oslew import Client

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

answer = client.here("19.4326,-99.1332", limit=3, time=1795132800)
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.here("19.4326,-99.1332", { limit: 3, time: 1795132800 });
Response
HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 299
ratelimit-reset: 1

{
  "at": [
    19.4326,
    -99.1332
  ],
  "admin": [
    {
      "doc": 2174,
      "id": "7f1f3634-1218-43e7-9538-ac3d1f43fc1c",
      "name": "México",
      "subtype": "country",
      "country": "MX",
      "region": null,
      "admin_level": null,
      "via": "interior",
      "provenance": {
        "name": "overture-divisions",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 61,
      "id": "0831989a-c65b-47db-802e-f930af64b9e4",
      "name": "México",
      "subtype": "country",
      "country": "MX",
      "region": null,
      "admin_level": null,
      "via": "interior",
      "provenance": {
        "name": "overture-divisions-maritime",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 1560,
      "id": "bc8dbc34-544b-47c4-bdb1-d3f5ecfc6af7",
      "name": "Ciudad de México",
      "subtype": "region",
      "country": "MX",
      "region": "MX-CMX",
      "admin_level": 1,
      "via": "boundary",
      "provenance": {
        "name": "overture-divisions",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 1380,
      "id": "b468c7e5-eb6f-44c8-bfeb-c60bce169f25",
      "name": "Cuauhtémoc",
      "subtype": "county",
      "country": "MX",
      "region": "MX-CMX",
      "admin_level": 2,
      "via": "boundary",
      "provenance": {
        "name": "overture-divisions",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 1522,
      "id": "2b1d49e2-98ef-4665-b9f6-1ce96c9f015b",
      "name": "Ciudad de México",
      "subtype": "locality",
      "country": "MX",
      "region": "MX-CMX",
      "admin_level": null,
      "via": "interior",
      "provenance": {
        "name": "overture-divisions",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 1423,
      "id": "96d18adf-e0bb-473c-affc-758969b272e1",
      "name": "Centro",
      "subtype": "neighborhood",
      "country": "MX",
      "region": "MX-CMX",
      "admin_level": null,
      "via": "boundary",
      "provenance": {
        "name": "overture-divisions",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 1417,
      "id": "7fc4847d-082f-4b20-9b65-930f09f6eac3",
      "name": "Plaza de la Constitución",
      "subtype": "microhood",
      "country": "MX",
      "region": "MX-CMX",
      "admin_level": null,
      "via": "boundary",
      "provenance": {
        "name": "overture-divisions",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    }
  ],
  "timezone": "America/Mexico_City",
  "places": [
    {
      "doc": 1573423,
      "name": "CALLE PLAZA DE LA CONSTITUCIÓN",
      "lat": 19.432082003066732,
      "lon": -99.13329281916349,
      "distance_m": 58.41527737409471,
      "precision": "street",
      "precision_m": 6.756173533775122,
      "hierarchy": {
        "locality": "Ciudad de México",
        "region": null,
        "country": "MX",
        "category": null,
        "postcode": "06060",
        "street": "CALLE PLAZA DE LA CONSTITUCIÓN"
      },
      "normalized": {
        "street": "CALLE PLAZA DE LA CONSTITUCIÓN",
        "locality": "Ciudad de México",
        "postcode": "06060",
        "country": "MX",
        "formatted": "CALLE PLAZA DE LA CONSTITUCIÓN, Ciudad de México, 06060, MX"
      },
      "provenance": {
        "name": "overture-addresses",
        "release": "2026-08-19.0",
        "license": "permissive (per-source, see record)"
      },
      "attributes": null
    },
    {
      "doc": 1573424,
      "name": "CALLE PLAZA DE LA CONSTITUCIÓN",
      "lat": 19.43319132854372,
      "lon": -99.13320635260472,
      "distance_m": 65.75619907210411,
      "precision": "street",
      "precision_m": 6.756173533775122,
      "hierarchy": {
        "locality": "Ciudad de México",
        "region": null,
        "country": "MX",
        "category": null,
        "postcode": "06060",
        "street": "CALLE PLAZA DE LA CONSTITUCIÓN"
      },
      "normalized": {
        "street": "CALLE PLAZA DE LA CONSTITUCIÓN",
        "locality": "Ciudad de México",
        "postcode": "06060",
        "country": "MX",
        "formatted": "CALLE PLAZA DE LA CONSTITUCIÓN, Ciudad de México, 06060, MX"
      },
      "provenance": {
        "name": "overture-addresses",
        "release": "2026-08-19.0",
        "license": "permissive (per-source, see record)"
      },
      "attributes": null
    },
    {
      "doc": 1573420,
      "name": "CALLE PLAZA DE LA CONSTITUCIÓN",
      "lat": 19.432586016471184,
      "lon": -99.13242815778341,
      "distance_m": 80.95084328467438,
      "precision": "street",
      "precision_m": 6.756173533775122,
      "hierarchy": {
        "locality": "Ciudad de México",
        "region": null,
        "country": "MX",
        "category": null,
        "postcode": "06060",
        "street": "CALLE PLAZA DE LA CONSTITUCIÓN"
      },
      "normalized": {
        "street": "CALLE PLAZA DE LA CONSTITUCIÓN",
        "locality": "Ciudad de México",
        "postcode": "06060",
        "country": "MX",
        "formatted": "CALLE PLAZA DE LA CONSTITUCIÓN, Ciudad de México, 06060, MX"
      },
      "provenance": {
        "name": "overture-addresses",
        "release": "2026-08-19.0",
        "license": "permissive (per-source, see record)"
      },
      "attributes": null
    }
  ],
  "road": {
    "lat": 19.43200133133587,
    "lon": -99.13329035902773,
    "distance_m": 67.23995201279342,
    "class": "living_street",
    "speed_limit_kmh": 30
  },
  "elevation_m": 2228.8455999999974,
  "rasters": [
    {
      "layer": "elevation",
      "units": "m",
      "value": 2228.8455999999974,
      "time": null
    },
    {
      "layer": "ecmwf_10u",
      "units": "m/s",
      "value": 0.3563390080000036,
      "time": 1795132800
    },
    {
      "layer": "ecmwf_10v",
      "units": "m/s",
      "value": -1.2219307520000178,
      "time": 1795132800
    },
    {
      "layer": "ecmwf_2t",
      "units": "K",
      "value": 289.96362847999995,
      "time": 1795132800
    },
    {
      "layer": "ecmwf_msl",
      "units": "Pa",
      "value": 101588.55451904,
      "time": 1795132800
    },
    {
      "layer": "ecmwf_tp",
      "units": "m",
      "value": 0,
      "time": 1795132800
    }
  ],
  "conditions": [
    {
      "parameter": "altim_inhg",
      "value": 30.4,
      "time": 1795103100,
      "station": "MMMX",
      "distance_m": 6428.533455622266,
      "provenance": {
        "name": "metar",
        "release": "2026-11-19T16:30Z",
        "license": "US NWS / aviationweather.gov, public domain"
      }
    },
    {
      "parameter": "co",
      "value": 0.96,
      "time": 1795086000,
      "station": "sedema-MER",
      "distance_m": 1689.7380487595012,
      "provenance": {
        "name": "sedema",
        "release": "2026-11-19T11:00Z",
        "license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
      }
    },
    {
      "parameter": "dewpoint_c",
      "value": 7,
      "time": 1795103100,
      "station": "MMMX",
      "distance_m": 6428.533455622266,
      "provenance": {
        "name": "metar",
        "release": "2026-11-19T16:30Z",
        "license": "US NWS / aviationweather.gov, public domain"
      }
    },
    {
      "parameter": "no2",
      "value": 35,
      "time": 1795086000,
      "station": "sedema-MER",
      "distance_m": 1689.7380487595012,
      "provenance": {
        "name": "sedema",
        "release": "2026-11-19T11:00Z",
        "license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
      }
    },
    {
      "parameter": "o3",
      "value": 1,
      "time": 1795086000,
      "station": "sedema-MER",
      "distance_m": 1689.7380487595012,
      "provenance": {
        "name": "sedema",
        "release": "2026-11-19T11:00Z",
        "license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
      }
    },
    {
      "parameter": "pm10",
      "value": 47,
      "time": 1795086000,
      "station": "sedema-MER",
      "distance_m": 1689.7380487595012,
      "provenance": {
        "name": "sedema",
        "release": "2026-11-19T11:00Z",
        "license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
      }
    },
    {
      "parameter": "pm25",
      "value": 25,
      "time": 1795086000,
      "station": "sedema-MER",
      "distance_m": 1689.7380487595012,
      "provenance": {
        "name": "sedema",
        "release": "2026-11-19T11:00Z",
        "license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
      }
    },
    {
      "parameter": "so2",
      "value": 52,
      "time": 1795086000,
      "station": "sedema-MER",
      "distance_m": 1689.7380487595012,
      "provenance": {
        "name": "sedema",
        "release": "2026-11-19T11:00Z",
        "license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
      }
    },
    {
      "parameter": "temp_c",
      "value": 15,
      "time": 1795103100,
      "station": "MMMX",
      "distance_m": 6428.533455622266,
      "provenance": {
        "name": "metar",
        "release": "2026-11-19T16:30Z",
        "license": "US NWS / aviationweather.gov, public domain"
      }
    },
    {
      "parameter": "vis_mi",
      "value": 6,
      "time": 1795103100,
      "station": "MMMX",
      "distance_m": 6428.533455622266,
      "provenance": {
        "name": "metar",
        "release": "2026-11-19T16:30Z",
        "license": "US NWS / aviationweather.gov, public domain"
      }
    },
    {
      "parameter": "wind_dir",
      "value": 0,
      "time": 1795103100,
      "station": "MMMX",
      "distance_m": 6428.533455622266,
      "provenance": {
        "name": "metar",
        "release": "2026-11-19T16:30Z",
        "license": "US NWS / aviationweather.gov, public domain"
      }
    },
    {
      "parameter": "wind_kt",
      "value": 0,
      "time": 1795103100,
      "station": "MMMX",
      "distance_m": 6428.533455622266,
      "provenance": {
        "name": "metar",
        "release": "2026-11-19T16:30Z",
        "license": "US NWS / aviationweather.gov, public domain"
      }
    }
  ],
  "stops": [],
  "epoch": 30,
  "release": "2026-08-19.0",
  "took_us": 25638
}

A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.

What comes back

Each field is what a more specific endpoint would have said, trimmed to fit beside the others:

FieldIsThe full version
adminEvery division containing the point, outermost first — without the time-zone entry./v1/admin
timezoneThe IANA zone id alone, or null./v1/timezone, with offsets and daylight saving
placesThe nearest addresses and places, nearest first, with distance_m and attributes; at most limit./v1/reverse
roadThe nearest road of the driving network: the nearest point on it (lat, lon), distance_m, class and the posted speed_limit_kmh where the source gives one. null with no roads layer, or none within about 9 km./v1/snap
rastersOne entry per loaded raster with a value at the point: layer, units, value, and time for layers with a time axis (null for elevation)./v1/raster
conditionsThe latest reading of each parameter from the nearest station carrying it, within 10 km, each with its station, distance_m, time and provenance./v1/conditions
stopsTransit stops within radius_m, nearest first, at most limit, with the routes serving each./v1/stops
elevation_mThe elevation raster's value, repeated from rasters for convenience; null where none is loaded./v1/elevation
epoch, releaseWhich store answered: see conventions.—

Reading the example

  • admin is the Zócalo's chain — México from the land and maritime layers, Ciudad de México, Cuauhtémoc, Centro, Plaza de la Constitución — and timezone is America/Mexico_City, carried separately.
  • The three nearest places are address rows on the Plaza de la Constitución, 58 to 81 m away, at street precision. here lists addresses too, because its list is reverse geocoding's.
  • road is a living_street 67 m away, posted at 30 km/h.
  • rasters has the elevation, 2,228.8 m (also as elevation_m), and the five forecast fields. Units are the source's: ecmwf_2t is in kelvin — 290.0 K is 16.8 °C — and ecmwf_tp, precipitation, in metres. The time asked for, 00:00 UTC on 20 November 2026, is a step of the loaded run, so these are its values for that hour. Ask for a time before the run begins and you get its first step, held, and nothing in the entry says so: the trap described under easy to misread.
  • conditions come from two stations: the weather from METAR station MMMX, 6.4 km away, and six pollutants from SEDEMA's Merced monitor, 1.7 km away. Each is the latest that station reported, whatevertime was asked for.
  • stops is empty: no transit feed loaded has a stop within a kilometre of this point.

Parameters

ParameterDefaultIs
atrequiredlat,lon.
radius_m1000How far to look for stops, clamped to 0–5,000 m.
limit5How many places, and how many stops, clamped to 1–50.
timenowUnix seconds, for the rasters with a time axis — the forecast fields.

Easy to misread

  • conditions always look 10 km out. They use the larger of radius_m and 10 km, and radius_m cannot exceed 5 km. To look further, up to 50 km, ask/v1/conditions with its own radius.
  • time does not apply to conditions. They are the latest each station reported, whatever time you pass. Each entry's own time is when it was observed; check it before calling anything "current".
  • A raster's time is the time you asked for, not the forecast's. Between two forecast steps the value is interpolated; beyond the first or last step it is that step's value, held. The entry does not say which. /v1/raster answers with between, naming the two steps it used — ask it when the valid time matters.
  • places includes addresses. For places only — and for a category or opening hours — use /v1/nearby.
  • road and rasters carry no provenance here. The road comes from the roads layer, under ODbL-1.0; each raster has its own source and licence. If you store them, get the licence from/v1/snap and /v1/raster, and readdata and licensing.

A missing layer contributes nothing

/v1/here never fails because a layer is missing or has nothing at the point. The layer's field is empty or null, and the rest answer as usual. A point in the open Pacific answers 200 with every list empty and every field null. The only thing it refuses is an at it cannot parse.

The price of that is that an empty field is ambiguous: stops: [] means "no stop within the radius" and "no transit layer loaded" alike. Where the difference matters, ask the specific endpoint, which says so —400, no transit layer loaded — rather than answering empty. Seeerrors.

When to use it, and when not

Use /v1/here when you have a coordinate and want to know about it — a pin dropped on a map, a record being enriched, an agent asking what is at a place. One request replaces half a dozen or more — one per raster alone — and you do not need to know in advance which layers the deployment carries.

Use the specific endpoints when you know what you want:

  • Control. here fixes the parameters the specific routes let you choose: a category or opening hours for places, a profile for the road, a radius for conditions, a path for a raster, departures rather than stops.
  • Bytes and time. here does all of the work every time. The captured answer above took 26 ms of server time; /v1/admin at the same point took 55 µs. If a page shows only the municipality and the temperature, two small calls are cheaper than one large one.
  • Plan. here belongs to the platform product. The chain and the nearest addresses alone come from /v1/reverse, which is in the address product (seeproducts and plans).

Enriching a record takes a few lines, and the absent layers take care of themselves:

Python
from oslew import Client

client = Client(base_url="https://api.oslew.com")

def enrich(lat: float, lon: float) -> dict:
    h = client.here(f"{lat},{lon}", limit=1, radius_m=500)
    by_subtype = {d["subtype"]: d for d in h["admin"]}
    raster = {r["layer"]: r["value"] for r in h["rasters"]}
    return {
        "country": by_subtype.get("country", {}).get("country"),
        "region": by_subtype.get("region", {}).get("region"),     # ISO 3166-2, e.g. MX-CMX
        "municipality": by_subtype.get("county", {}).get("name"),
        "timezone": h["timezone"],
        "elevation_m": raster.get("elevation"),
        "nearest_road_m": h["road"]["distance_m"] if h["road"] else None,
        "stops_within_500_m": len(h["stops"]),
    }

Every lookup allows for absence, because any of these can be missing where the deployment has no such layer. Theenriching a coordinate example takes this further.

Endpoints

GET/v1/hereplatform

Everything known at a point, from every loaded layer: administrative chain, time zone, nearest places, nearest road, elevation and rasters, latest conditions, transit stops.