Skip to content
Documentation menu
docs / api / get-geocoding-v5-mapbox-places-query
Mapbox-compatible paths

GET/geocoding/v5/mapbox.places/{query}

Access and price

AuthAn API key, as Authorization: Bearer snk_…, ?api_key=snk_… or ?access_token=snk_…. Metered. A browser (maps) key may call it.
Price1 call per request, as GET /geocode. Class: standard. Published as unit_rules.default in /pricing.json.

What it does

Legacy Mapbox Geocoding v5 (mapbox.places), forward or, for a lon,lat query, reverse. One standard unit.

An API key, as Authorization: Bearer snk_…, ?api_key=snk_… or ?access_token=snk_…. Metered. Price: 1 call per request, as GET /geocode.

Call it

bash
curl -fsS -X GET "https://api.mapmap.ai/geocoding/v5/mapbox.places/{query}" \
  -H "Authorization: Bearer $MAPMAP_KEY"

Parameters

NameInTypeRequiredDescription
querypathstringyesSearch text, or lon,lat for a reverse lookup, followed by .json
access_tokenquerystringnoYour MapMap key (snk_...)
proximityquerystringnoBias as lon,lat. Forward search only: a 400 on a reverse lookup
bboxquerystringnominLon,minLat,maxLon,maxLat. Forward search only: a 400 on a reverse lookup
countryquerystringnoISO 3166-1 alpha-2 codes, comma-separated. On a reverse lookup it filters the page returned
limitqueryintegerno1 to 10 Limits: at least 0.
languagequerystringnoIETF tag; its primary subtag selects the result language of a forward search. Accepted on a reverse lookup and changes nothing there
typesquerystringnoFilter on place_type, applied to the page returned
autocompletequerybooleannoAccepted and ignored

Responses

200Mapbox v5 FeatureCollection (query, features with place_name, center, context, relevance, and attribution) built from MapMap's own answers
FieldTypeRequiredDescription
attributionstringnoPlace data attribution.
featuresobject[]noMatches, best first: id, place_name, text, center, geometry, place_type, relevance and context.
querynot stated[]noThe query, split into words.
typestringnoAlways FeatureCollection.

Example: Recorded from the hosted gateway on 2026-11-05 with a test key: GET /geocoding/v5/mapbox.places/Brighton%20Station.json?limit=1; lists trimmed to their first items

json
{
  "attribution": "Place data © OpenStreetMap contributors, ODbL 1.0",
  "features": [
    {
      "center": [
        -0.1407393,
        50.8288602
      ],
      "context": [
        {
          "id": "postcode.bn1-3xp",
          "text": "BN1 3XP"
        },
        {
          "id": "place.brighton",
          "text": "Brighton"
        }
      ],
      "geometry": {
        "coordinates": [
          -0.1407393,
          50.8288602
        ],
        "type": "Point"
      },
      "id": "poi.osm:n20947173:poi",
      "place_name": "Brighton, BN1 3XP, United Kingdom",
      "place_type": [
        "poi"
      ],
      "properties": {},
      "relevance": 1,
      "text": "Brighton",
      "type": "Feature"
    }
  ],
  "query": [
    "brighton",
    "station"
  ],
  "type": "FeatureCollection"
}
400{message}

application/json

401Missing or invalid key. Also: No key, or a missing, malformed, unknown, revoked or expired one (unauthorized); the body carries signup, docs and a one-call hint for a free key

application/problem+json · Problem

402Beyond the included volume with no way to pay this call: an x402 body naming how to pay (provisional key past its allowance, prepaid balance below the price, or a rejected X-PAYMENT). Not problem+json

application/json · X402PaymentRequired

403The key may not call this: a browser key outside its scope (scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)

application/problem+json · Problem

429Quota or rate limit exceeded. Also: Per-key rate limit (rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)

application/problem+json · Problem

504The request did not finish within the gateway's request deadline (request-timeout)

application/problem+json · Problem

Error bodies follow the shared problem model documented on API conventions.

Also under Mapbox-compatible paths

Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId get_v5_places