Documentation menu
Mapbox-compatible paths
GET/search/geocode/v6/forward
Access and price
| Auth | An API key, as Authorization: Bearer snk_…, ?api_key=snk_… or ?access_token=snk_…. Metered. A browser (maps) key may call it. |
|---|---|
| Price | 1 call per request, as GET /geocode. Class: standard. Published as unit_rules.default in /pricing.json. |
What it does
Mapbox Geocoding v6 forward search. 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/search/geocode/v6/forward?q=…" \
-H "Authorization: Bearer $MAPMAP_KEY"Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| q | query | string | yes | Search text |
| access_token | query | string | no | Your MapMap key (snk_...) |
| proximity | query | string | no | Bias as lon,lat (ip is refused) |
| bbox | query | string | no | minLon,minLat,maxLon,maxLat |
| country | query | string | no | ISO 3166-1 alpha-2 codes, comma-separated |
| limit | query | integer | no | 1 to 10 Limits: at least 0. |
| language | query | string | no | IETF tag; its primary subtag selects the result language |
| types | query | string | no | Filter on feature_type, applied to the page returned |
| autocomplete | query | boolean | no | Accepted and ignored |
| session_token | query | string | no | Accepted and ignored |
| permanent | query | boolean | no | Accepted and ignored |
Responses
200Mapbox v6 FeatureCollection built from MapMap's own answers (shape-compatible, not Mapbox's results), with the OpenStreetMap
attribution| Field | Type | Required | Description |
|---|---|---|---|
| attribution | string | no | Place data attribution. |
| features | object[] | no | Matches, best first: id, geometry and properties
(feature_type, name, full_address, place_formatted,
coordinates, context, mapbox_id). |
| type | string | no | Always FeatureCollection. |
Example: Recorded from the hosted gateway on 2026-11-05 with a test key: GET /search/geocode/v6/forward?q=Brighton%20Station&proximity=-0.14,50.83&limit=1; lists trimmed to their first items
json
{
"attribution": "Place data © OpenStreetMap contributors, ODbL 1.0",
"features": [
{
"geometry": {
"coordinates": [
-0.141006,
50.8313949
],
"type": "Point"
},
"id": "osm:way:633094938",
"properties": {
"context": {
"country": {
"country_code": "GB",
"name": "United Kingdom"
},
"neighborhood": {
"name": "Round Hill"
},
"place": {
"name": "Brighton"
},
"postcode": {
"name": "BN1 4LF"
},
"region": {
"name": "England"
},
"street": {
"name": "Billinton Way"
}
},
"coordinates": {
"latitude": 50.8313949,
"longitude": -0.141006
},
"feature_type": "poi",
"full_address": "Brighton Station, Billinton Way, Brighton, BN1 4LF, United Kingdom",
"mapbox_id": "osm:way:633094938",
"name": "Brighton Station",
"place_formatted": "Billinton Way, Brighton, BN1 4LF, United Kingdom"
},
"type": "Feature"
}
],
"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 keyapplication/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+jsonapplication/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_v6_forward