Documentation menu
Boundaries, coordinates and time zones
GET/timezone
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 request. Class: standard. Published as unit_rules.default in /pricing.json. |
What it does
Timezone-at-coordinate endpoint.
An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Price: 1 call per request.
Call it
bash
curl -fsS -X GET "https://api.mapmap.ai/timezone?lat=…&lon=…" \
-H "Authorization: Bearer $MAPMAP_KEY"Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| lat | query | number | yes | Latitude in decimal degrees |
| lon | query | number | yes | Longitude in decimal degrees |
| timestamp | query | string | no | RFC 3339 or Unix seconds; defaults to now |
Responses
200
{tzid, utc_offset_s, dst_offset_s, abbreviation, timestamp}. tzid and every derived field are null together when no loaded zone covers the point: an honest "no data", never a guess| Field | Type | Required | Description |
|---|---|---|---|
| abbreviation | string | no | Zone abbreviation at timestamp, e.g. GMT or BST. |
| dst_offset_s | integer | no | The daylight-saving part of that offset, seconds. |
| timestamp | string | no | The instant the offsets are for (the request's, or now). |
| tzid | string | no | IANA zone id, e.g. Europe/London. |
| utc_offset_s | integer | no | Total offset from UTC at timestamp, seconds. |
Example: Recorded from the hosted gateway on 2026-11-05 with a test key: GET /timezone?lat=51.5074&lon=-0.1278; lists trimmed to their first items
json
{
"abbreviation": "GMT",
"dst_offset_s": 0,
"timestamp": "2026-11-05T20:43:13.146021508+00:00",
"tzid": "Europe/London",
"utc_offset_s": 0
}400Invalid request
application/problem+json · Problem
401Missing or invalid API 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
501Timezone lookup not enabled (SN_TIMEZONE_SQLITE unset or failed to load)
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 Boundaries, coordinates and time zones
Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId get_timezone