Documentation menu
POST/geocode/batch
Access and price
| Auth | An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Needs a full key; a browser (maps) key is refused. |
|---|---|
| Price | 1 call per query, at most 1000 queries per request. Class: standard, or premium for truck and ADR work. Published as unit_rules.geocode_batch in /pricing.json. |
| Premium | When the body asks for truck routing: "costing": "truck", a top-level adr object or "hazmat": true |
What it does
Many geocodes in one call.
An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Price: 1 call per query, at most 1000 queries per request.
Call it
curl -fsS -X POST "https://api.mapmap.ai/geocode/batch" \
-H "Authorization: Bearer $MAPMAP_KEY" \
-H "Content-Type: application/json" \
-d '{"queries":[{"city":"string","country":"string","housenumber":"string","lat":0,"limit":0,"lon":0,"postcode":"string","q":"string","street":"string"}]}'Request body
application/json · GeocodeBatchRequest
| Field | Type | Required | Description |
|---|---|---|---|
| queries | GeocodeBatchQuery[] | yes | The queries, up to [MAX_BATCH_QUERIES]. Order is preserved in the
response. |
Example: A request assembled from this schema's own field examples, enums, defaults and types; not a recorded call
{
"queries": [
{
"city": "string",
"country": "string",
"housenumber": "string",
"lat": 0,
"limit": 0,
"lon": 0,
"postcode": "string",
"q": "string",
"street": "string"
}
]
}Responses
features (the same GeoJSON FeatureCollection the single endpoints return, match object included when the entry named structured components) or problem (an RFC 9457 object describing what went wrong with THAT entry). A failing entry never fails the batch| Field | Type | Required | Description |
|---|---|---|---|
| results | GeocodeBatchResult[] | yes | One entry per query, index-tagged and in request order. |
Example: A response assembled from this schema's own field examples, enums, defaults and types; not a recorded call
{
"results": [
{
"index": 0
}
]
}queries arrayapplication/problem+json · Problem
unauthorized); the body carries signup, docs and a one-call hint for a free keyapplication/problem+json · Problem
X-PAYMENT). Not problem+jsonapplication/json · X402PaymentRequired
scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)application/problem+json · Problem
text/plain
urn:sn-gateway:problem:batch-too-large, body carries max_queries and queries)application/problem+json · Problem
rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)application/problem+json · Problem
application/problem+json · Problem
request-timeout)application/problem+json · Problem
Error bodies follow the shared problem model documented on API conventions.
Also under Geocoding and search
Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId post_geocode_batch