CompatibilityaddressoperationId compat_mapbox_geocoding_v5_mapbox_places
GET/compat/mapbox/geocoding/v5/mapbox.places/{search_text}
Mapbox Geocoding v5's shape over this service's data: a FeatureCollection, at their path. Free text forward, lon,lat reverse, as they do it.
A compatibility endpoint, not a proxy. Your existing Mapbox client works after changing the host and the credential — access_token is accepted and ignored; authentication is this service's bearer key. The data is ours and every feature's properties.provenance carries its source, release and licence code; terms at https://www.oslew.com/licensing. Part of the address product. search_text may end in .json, as theirs does.
Send Authorization: Bearer sk_live_…. The key's plan must include theaddress product; which plans do.
Explained in Migrating from another provider.
Example
A Mapbox Geocoding v5 request.
curl -G "https://api.oslew.com/compat/mapbox/geocoding/v5/mapbox.places/Museo%20Soumaya.json" \
-H "Authorization: Bearer $GEO_API_KEY" \
--data-urlencode 'limit=1'from oslew import Client
# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")
answer = client.compat_mapbox_geocoding_v5_mapbox_places(
"Museo Soumaya.json",
limit=1,
)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.compat_mapbox_geocoding_v5_mapbox_places("Museo Soumaya.json", { limit: 1 });HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 298
ratelimit-reset: 1
{
"attribution": "geospatial-alt; data: CDLA-Permissive-2.0",
"features": [
{
"bbox": [
-99.20472389693853,
19.440560412001677,
-99.20459517519265,
19.440681794925386
],
"center": [
-99.20465953606559,
19.44062110346353
],
"context": [
{
"id": "place.0",
"text": "Miguel Hidalgo"
},
{
"id": "region.0",
"text": "CMX"
},
{
"id": "country.0",
"short_code": "mx",
"text": "MX"
}
],
"geometry": {
"coordinates": [
-99.20465953606559,
19.44062110346353
],
"type": "Point"
},
"id": "poi.348329",
"place_name": "Museo Soumaya, Miguel Hidalgo, CMX, MX",
"place_type": [
"poi"
],
"properties": {
"accuracy": "poi",
"accuracy_m": 6.756173533775122,
"provenance": {
"licence": "CDLA-Permissive-2.0",
"name": "overture-places",
"release": "2026-08-19.0",
"served_by": "geospatial-alt"
}
},
"relevance": 0.5,
"text": "Museo Soumaya",
"type": "Feature"
}
],
"query": [
"museo",
"soumaya"
],
"type": "FeatureCollection"
}A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.
Path
| Name | Type | Description |
|---|---|---|
search_textpathrequired | string | Free text, or lon,lat for a reverse lookup. May end in .json. |
Query
| Name | Type | Description |
|---|---|---|
limitquery | integer ≤ 10 default 5 | |
proximityquery | string | lon,lat; becomes our near bias (lat,lon). |
countryquery | string | Comma-separated ISO codes; results outside the set are dropped. |
access_tokenquery | string | Accepted and ignored. |
Responses
200 — Mapbox's FeatureCollection, with properties.provenance added.
object
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.
| 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.