GeocodingaddressoperationId reverse
GET/v1/reverse
The places nearest a point, nearest first.
Send Authorization: Bearer sk_live_…. The key's plan must include theaddress product; which plans do.
Explained in Data and licensing, Reverse geocoding and Nearby places and hours.
Example
The places nearest a point.
curl -G "https://api.oslew.com/v1/reverse" \
-H "Authorization: Bearer $GEO_API_KEY" \
--data-urlencode 'at=19.4406,-99.2047' \
--data-urlencode 'limit=3'from oslew import Client
# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")
answer = client.reverse("19.4406,-99.2047", limit=3)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.reverse("19.4406,-99.2047", { limit: 3 });HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 298
ratelimit-reset: 1
{
"at": [
19.4406,
-99.2047
],
"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": 1357,
"id": "f7ff371f-1662-496e-9413-54c1ff115318",
"name": "Miguel Hidalgo",
"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": "boundary",
"provenance": {
"name": "overture-divisions",
"release": "2026-08-19.0",
"license": "ODbL-1.0"
}
},
{
"doc": 1349,
"id": "7b906a62-7024-45cf-bbfa-1618f4bb7b32",
"name": "Ampliación Granada",
"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": 147,
"id": "America/Mexico_City",
"name": "America/Mexico_City",
"subtype": "timezone",
"country": null,
"region": null,
"admin_level": null,
"via": "interior",
"provenance": {
"name": "timezone-boundary-builder",
"release": "2026d",
"license": "ODbL-1.0"
}
}
],
"results": [
{
"doc": 348329,
"name": "Museo Soumaya",
"lat": 19.44062110346353,
"lon": -99.20465953606559,
"distance_m": 4.848551852818172,
"precision": "poi",
"precision_m": 6.756173533775122,
"hierarchy": {
"locality": "Miguel Hidalgo",
"region": "CMX",
"country": "MX",
"category": "museum",
"postcode": null,
"street": null
},
"normalized": {
"locality": "Miguel Hidalgo",
"region": "CMX",
"country": "MX",
"formatted": "Museo Soumaya, Miguel Hidalgo, CMX, MX"
},
"provenance": {
"name": "overture-places",
"release": "2026-08-19.0",
"license": "CDLA-Permissive-2.0"
},
"attributes": {
"rating": null,
"reviews": 0,
"price": null,
"hours": [
[
0,
0
],
[
0,
0
],
[
0,
0
],
[
0,
0
],
[
0,
0
],
[
0,
0
],
[
0,
0
]
],
"photo": "https://commons.wikimedia.org/wiki/Special:FilePath/Museo_Soumaya%2C_Ciudad_de_M%C3%A9xico%2C_M%C3%A9xico%2C_2015-07-18%2C_DD_12.JPG",
"provenance": {
"name": "wikidata",
"release": "2026-11-23",
"license": "CC0; images under their Commons licences"
}
}
},
{
"doc": 348328,
"name": "Nuevo Polanco",
"lat": 19.440713171602745,
"lon": -99.20465953606559,
"distance_m": 13.280140073732118,
"precision": "poi",
"precision_m": 6.756173533775122,
"hierarchy": {
"locality": "Miguel Hidalgo",
"region": "CMX",
"country": "MX",
"category": "real_estate_service",
"postcode": null,
"street": null
},
"normalized": {
"locality": "Miguel Hidalgo",
"region": "CMX",
"country": "MX",
"formatted": "Nuevo Polanco, Miguel Hidalgo, CMX, MX"
},
"provenance": {
"name": "overture-places",
"release": "2026-08-19.0",
"license": "CDLA-Permissive-2.0"
},
"attributes": {
"rating": null,
"reviews": 0,
"price": null,
"hours": [
[
0,
0
],
[
0,
0
],
[
0,
0
],
[
0,
0
],
[
0,
0
],
[
0,
0
],
[
0,
0
]
],
"photo": "https://commons.wikimedia.org/wiki/Special:FilePath/Ext_06Museo_Soumaya_FREE_Fernando_Romero_EnterprisE_photo_by_Adam_Wiseman.jpg",
"provenance": {
"name": "wikidata",
"release": "2026-11-23",
"license": "CC0; images under their Commons licences"
}
}
},
{
"doc": 348327,
"name": "Slimlandia",
"lat": 19.44052023216659,
"lon": -99.20483262335881,
"distance_m": 16.494187463828435,
"precision": "poi",
"precision_m": 6.756173533775122,
"hierarchy": {
"locality": "Miguel Hidalgo",
"region": "CMX",
"country": "MX",
"category": "arts_and_entertainment",
"postcode": null,
"street": null
},
"normalized": {
"locality": "Miguel Hidalgo",
"region": "CMX",
"country": "MX",
"formatted": "Slimlandia, Miguel Hidalgo, CMX, MX"
},
"provenance": {
"name": "overture-places",
"release": "2026-08-19.0",
"license": "CDLA-Permissive-2.0"
},
"attributes": null
}
],
"segments": 2,
"took_us": 2573
}A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.
Query
| Name | Type | Description |
|---|---|---|
atqueryrequired | string | lat,lon. |
limitquery | integer ≥ 1, ≤ 50 default 5 |
Responses
200 — Nearest first.
adminDivision[]requiredadmin_levelinteger | nullrequiredcountrystring | nullrequiredISO 3166-1 alpha-2.docintegerrequiredidstringrequiredOverture division id.namestringrequiredprovenanceSourcerequiredlicensestringrequirednamestringrequiredreleasestringrequired
regionstring | nullrequiredISO 3166-2.subtypestringrequiredcountry | dependency | region | county | localadmin | locality | macrohood | neighborhood | microhood | timezoneviastringrequiredinterior: the point's cell is provably inside, no geometry read;boundary: the polygon decided.interior | boundary
atnumber[]requiredresultsNearby[]requireddistance_mnumberrequireddocintegerrequiredhierarchyContextrequiredcategorystring | nullcountrystring | nulllocalitystring | nullpostcodestring | nullregionstring | nullstreetstring | null
latnumberrequiredlonnumberrequirednamestringrequirednormalizedNormalizedrequiredThe address in parts as well as in a sentence.formattedorders the house number and the street the way that country writes them —Avenida Insurgentes Sur 1602in Mexico,1600 Pennsylvania Avenue NWin the United States — and is derived from the parts, so a caller who needs another layout does not have to unpick the sentence.formattedstringrequiredcountrystringISO code.house_numberstringWhatever the source recorded, which is not always a number:10,12-B,S/N.localitystringpostcodestringregionstringAbsent for most of the world, and absent from the address layer, which records locality, postcode and country.streetstring
precisionPrecisionrequiredWhat the position locates, finest first.rooftopis an address point with a house number, as its source recorded it — never a building footprint we snapped to, which would contaminate the permissive bundle.interpolatedis a point placed between the two recorded numbers that bracket the one asked for, which is what Google callsRANGE_INTERPOLATED.streetis an address row with no number to place along it.precision_mcarries the honest radius alongside: the label says what was matched, the metres say how wrong it can be.rooftop | interpolated | address | street | postcode | locality | region | country | poiprecision_mnumberrequiredprovenanceSourcerequiredlicensestringrequirednamestringrequiredreleasestringrequired
attributesAttributes | nullFrom an attributes feed, when one carries this place.hoursinteger[][]required7 itemsPer weekday, Monday first: [open, close] minutes from midnight; [0,0] closed, [0,65535] all day; a close before its open runs past midnight.priceinteger | nullrequired0–4.provenanceSourcerequiredlicensestringrequirednamestringrequiredreleasestringrequired
ratingnumber | nullrequired0–5.reviewsintegerrequiredphotostringA photo of the place on Wikimedia Commons, when a feed carries one. The image is the photographer's, not ours: see https://www.oslew.com/licensing
segmentsintegerrequiredtook_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.
| 400 | Bad request. |
| 401 | No key, or one that is unknown, revoked or suspended. |
| 403 | The 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. |
| 429 | This 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. |
| 503 | The 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.