{"openapi":"3.1.0","info":{"title":"geolith API","version":"2026-10-22","description":"Every HTTP path of api.geolith.app: Search, Maps, Routing and Data. Each product also has its own document: /search/openapi.json, /tiles/openapi.json, /routing/openapi.json and /datasets/openapi.json on docs.geolith.app.","contact":{"name":"geolith","email":"contact@geolith.app","url":"https://geolith.app"}},"servers":[{"url":"https://api.geolith.app","description":"geolith cloud"}],"externalDocs":{"description":"Docs","url":"https://docs.geolith.app/"},"security":[{"apiKeyQuery":[]},{"bearer":[]}],"paths":{"/health":{"get":{"description":"Reports how many places the `.glx` file holds. Use it as a liveness and\nreadiness probe.","operationId":"health","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}},"description":"The index is open"}},"summary":"Checks that the index is open.","tags":["status"],"security":[]}},"/v1/autocomplete":{"get":{"description":"Like `/v1/search`, but the last word of `text` matches as a prefix, so\n`eiffel tow` finds the Eiffel Tower. A last word of two or more\ncharacters is expanded in the index and stays required when the other\nwords relax. A one-character last word after other words is not: the\nother words are searched and their matches are filtered on it.","operationId":"autocomplete","parameters":[{"description":"The text to search for: a place name, an address, or both. Only\nletters and digits count; at most 12 words are used.","example":"eiffel tower","in":"query","name":"text","required":true,"schema":{"type":"string"}},{"description":"Number of results, from 1 to 40. Default 10.","example":10,"in":"query","name":"size","required":false,"schema":{"format":"int32","maximum":40,"minimum":1,"type":"integer"}},{"description":"Comma-separated layers to search: `venue` (points of interest),\n`address`, `street`, `locality` (cities, towns, villages), `county`,\n`region` and `country`. Default: all.","example":"venue","in":"query","name":"layers","required":false,"schema":{"type":"string"}},{"description":"Comma-separated ISO 3166-1 alpha-2 country codes to search in, in any\ncase. Default: every country.","example":"FR,BE","in":"query","name":"boundary.country","required":false,"schema":{"type":"string"}},{"description":"Latitude of a point whose surroundings rank higher. Set together with\n`focus.point.lon`.","example":48.8566,"in":"query","name":"focus.point.lat","required":false,"schema":{"format":"double","maximum":90,"minimum":-90,"type":"number"}},{"description":"Longitude of a point whose surroundings rank higher. Set together with\n`focus.point.lat`.","example":2.3522,"in":"query","name":"focus.point.lon","required":false,"schema":{"format":"double","maximum":180,"minimum":-180,"type":"number"}},{"description":"Language of the names returned, as a two- or three-letter code (`hi`,\n`mr`; `hi-IN` reads as `hi`). A place with a name in that language\nreturns it; others keep their name. Default: each place's own name.","example":"hi","in":"query","name":"lang","required":false,"schema":{"type":"string"}},{"description":"Comma-separated categories to keep, at most 8: Pelias taxonomy names\n(`education`, `health`, `food`, `transport`, `religion`, `finance`,\n`accommodation`, `retail`) or category words (`college`, `bakery`).\nDefault: every place.","example":"education","in":"query","name":"categories","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureCollection"}}},"description":"Places matching the text so far, best first"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"A parameter is missing or invalid"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/search/hosted/quotas-and-errors#errors"}}}}},"403":{"description":"`origin_not_allowed` (a publishable key used from an origin it does not list), `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly geocoding allowance of 50000 requests on the Free plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"geocoding","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/search/hosted/quotas-and-errors#errors"}}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The index could not be read"}},"summary":"Search as you type: finds places while the last word is unfinished.","tags":["geocoding"]}},"/v1/nearby":{"get":{"description":"Returns up to `size` places within `boundary.circle.radius` kilometres of\nthe point (default and at most 50), nearest first, each with its\n`distance` in kilometres. Use `layers=venue` for points of interest only.","operationId":"nearby","parameters":[{"description":"Latitude of the point.","example":18.5195,"in":"query","name":"point.lat","required":true,"schema":{"format":"double","maximum":90,"minimum":-90,"type":"number"}},{"description":"Longitude of the point.","example":73.8553,"in":"query","name":"point.lon","required":true,"schema":{"format":"double","maximum":180,"minimum":-180,"type":"number"}},{"description":"Search radius in kilometres, greater than 0 and at most 50.\nDefault 50.","example":5,"in":"query","name":"boundary.circle.radius","required":false,"schema":{"exclusiveMinimum":0,"format":"double","maximum":50,"type":"number"}},{"description":"Number of results, from 1 to 40. Default 10.","example":10,"in":"query","name":"size","required":false,"schema":{"format":"int32","maximum":40,"minimum":1,"type":"integer"}},{"description":"Comma-separated layers to search: `venue` (points of interest),\n`address`, `street`, `locality` (cities, towns, villages), `county`,\n`region` and `country`. Default: all.","example":"venue","in":"query","name":"layers","required":false,"schema":{"type":"string"}},{"description":"Comma-separated ISO 3166-1 alpha-2 country codes to search in, in any\ncase. Default: every country.","example":"FR,BE","in":"query","name":"boundary.country","required":false,"schema":{"type":"string"}},{"description":"Latitude of a point whose surroundings rank higher. Set together with\n`focus.point.lon`.","example":48.8566,"in":"query","name":"focus.point.lat","required":false,"schema":{"format":"double","maximum":90,"minimum":-90,"type":"number"}},{"description":"Longitude of a point whose surroundings rank higher. Set together with\n`focus.point.lat`.","example":2.3522,"in":"query","name":"focus.point.lon","required":false,"schema":{"format":"double","maximum":180,"minimum":-180,"type":"number"}},{"description":"Language of the names returned, as a two- or three-letter code (`hi`,\n`mr`; `hi-IN` reads as `hi`). A place with a name in that language\nreturns it; others keep their name. Default: each place's own name.","example":"hi","in":"query","name":"lang","required":false,"schema":{"type":"string"}},{"description":"Comma-separated categories to keep, at most 8: Pelias taxonomy names\n(`education`, `health`, `food`, `transport`, `religion`, `finance`,\n`accommodation`, `retail`) or category words (`college`, `bakery`).\nDefault: every place.","example":"education","in":"query","name":"categories","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureCollection"}}},"description":"Places around the point, nearest first"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The point is missing or a parameter is invalid"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/search/hosted/quotas-and-errors#errors"}}}}},"403":{"description":"`origin_not_allowed` (a publishable key used from an origin it does not list), `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly geocoding allowance of 50000 requests on the Free plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"geocoding","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/search/hosted/quotas-and-errors#errors"}}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The index could not be read"}},"summary":"Nearby search: finds places around a point, nearest first.","tags":["geocoding"]}},"/v1/place":{"get":{"description":"Returns each place in the order its gid was asked for. A gid that no\nplace has, or whose layer does not match the place's, is left out. With\n`geometry=true`, a place with an outline returns it as its geometry.","operationId":"place","parameters":[{"description":"Comma-separated gids, as returned in each result's `gid`\n(`geolith:<layer>:<id>`); 1 to 40.","example":"geolith:venue:7,geolith:address:3","in":"query","name":"ids","required":true,"schema":{"type":"string"}},{"description":"Return each place's outline as its geometry (`Polygon` or\n`MultiPolygon`) when it has one, with the point in\n`properties.center` and the outline's `bbox`. Countries, regions,\ncounties, localities and venues mapped as areas have outlines.","example":true,"in":"query","name":"geometry","required":false,"schema":{"type":"boolean"}},{"description":"Language of the names returned, as a two- or three-letter code (`hi`,\n`mr`). A place with a name in that language returns it.","example":"hi","in":"query","name":"lang","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureCollection"}}},"description":"The places, in the asked order"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"`ids` is missing or holds an invalid gid"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/search/hosted/quotas-and-errors#errors"}}}}},"403":{"description":"`origin_not_allowed` (a publishable key used from an origin it does not list), `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly geocoding allowance of 50000 requests on the Free plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"geocoding","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/search/hosted/quotas-and-errors#errors"}}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The index could not be read"}},"summary":"Place lookup: returns places by their gids.","tags":["geocoding"]}},"/v1/reverse":{"get":{"description":"Returns up to `size` places within `boundary.circle.radius` kilometres of\nthe point (default 1, at most 100), nearest first, each with its\n`distance` in kilometres. `focus.point.lat` and `focus.point.lon` are\naccepted but have no effect.","operationId":"reverse","parameters":[{"description":"Latitude of the point.","example":48.8584,"in":"query","name":"point.lat","required":true,"schema":{"format":"double","maximum":90,"minimum":-90,"type":"number"}},{"description":"Longitude of the point.","example":2.2945,"in":"query","name":"point.lon","required":true,"schema":{"format":"double","maximum":180,"minimum":-180,"type":"number"}},{"description":"Search radius in kilometres, greater than 0 and at most 100.\nDefault 1.","example":1,"in":"query","name":"boundary.circle.radius","required":false,"schema":{"exclusiveMinimum":0,"format":"double","maximum":100,"type":"number"}},{"description":"Number of results, from 1 to 40. Default 10.","example":10,"in":"query","name":"size","required":false,"schema":{"format":"int32","maximum":40,"minimum":1,"type":"integer"}},{"description":"Comma-separated layers to search: `venue` (points of interest),\n`address`, `street`, `locality` (cities, towns, villages), `county`,\n`region` and `country`. Default: all.","example":"venue","in":"query","name":"layers","required":false,"schema":{"type":"string"}},{"description":"Comma-separated ISO 3166-1 alpha-2 country codes to search in, in any\ncase. Default: every country.","example":"FR,BE","in":"query","name":"boundary.country","required":false,"schema":{"type":"string"}},{"description":"Latitude of a point whose surroundings rank higher. Set together with\n`focus.point.lon`.","example":48.8566,"in":"query","name":"focus.point.lat","required":false,"schema":{"format":"double","maximum":90,"minimum":-90,"type":"number"}},{"description":"Longitude of a point whose surroundings rank higher. Set together with\n`focus.point.lat`.","example":2.3522,"in":"query","name":"focus.point.lon","required":false,"schema":{"format":"double","maximum":180,"minimum":-180,"type":"number"}},{"description":"Language of the names returned, as a two- or three-letter code (`hi`,\n`mr`; `hi-IN` reads as `hi`). A place with a name in that language\nreturns it; others keep their name. Default: each place's own name.","example":"hi","in":"query","name":"lang","required":false,"schema":{"type":"string"}},{"description":"Comma-separated categories to keep, at most 8: Pelias taxonomy names\n(`education`, `health`, `food`, `transport`, `religion`, `finance`,\n`accommodation`, `retail`) or category words (`college`, `bakery`).\nDefault: every place.","example":"education","in":"query","name":"categories","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureCollection"}}},"description":"Places near the point, nearest first"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The point is missing or a parameter is invalid"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/search/hosted/quotas-and-errors#errors"}}}}},"403":{"description":"`origin_not_allowed` (a publishable key used from an origin it does not list), `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly geocoding allowance of 50000 requests on the Free plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"geocoding","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/search/hosted/quotas-and-errors#errors"}}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The index could not be read"}},"summary":"Reverse geocoding: finds the places nearest to a point.","tags":["geocoding"]}},"/v1/search":{"get":{"description":"Every word of `text` is required first. When that finds fewer than `size`\nplaces, the query is relaxed to about three quarters of the words; words\nin more than one place in a thousand do not decide a relaxed match.\nResults are ranked by BM25 text relevance plus the place's importance.\n\nWith `focus.point.lat` and `focus.point.lon`, places within about 55 km of\nthe point come first, closer ones ranked higher, and each result has a\n`distance` in kilometres. The search starts about 5 km around the point\nand widens only when it finds fewer than `size` places.","operationId":"search","parameters":[{"description":"The text to search for: a place name, an address, or both. Only\nletters and digits count; at most 12 words are used.","example":"eiffel tower","in":"query","name":"text","required":true,"schema":{"type":"string"}},{"description":"Number of results, from 1 to 40. Default 10.","example":10,"in":"query","name":"size","required":false,"schema":{"format":"int32","maximum":40,"minimum":1,"type":"integer"}},{"description":"Comma-separated layers to search: `venue` (points of interest),\n`address`, `street`, `locality` (cities, towns, villages), `county`,\n`region` and `country`. Default: all.","example":"venue","in":"query","name":"layers","required":false,"schema":{"type":"string"}},{"description":"Comma-separated ISO 3166-1 alpha-2 country codes to search in, in any\ncase. Default: every country.","example":"FR,BE","in":"query","name":"boundary.country","required":false,"schema":{"type":"string"}},{"description":"Latitude of a point whose surroundings rank higher. Set together with\n`focus.point.lon`.","example":48.8566,"in":"query","name":"focus.point.lat","required":false,"schema":{"format":"double","maximum":90,"minimum":-90,"type":"number"}},{"description":"Longitude of a point whose surroundings rank higher. Set together with\n`focus.point.lat`.","example":2.3522,"in":"query","name":"focus.point.lon","required":false,"schema":{"format":"double","maximum":180,"minimum":-180,"type":"number"}},{"description":"Language of the names returned, as a two- or three-letter code (`hi`,\n`mr`; `hi-IN` reads as `hi`). A place with a name in that language\nreturns it; others keep their name. Default: each place's own name.","example":"hi","in":"query","name":"lang","required":false,"schema":{"type":"string"}},{"description":"Comma-separated categories to keep, at most 8: Pelias taxonomy names\n(`education`, `health`, `food`, `transport`, `religion`, `finance`,\n`accommodation`, `retail`) or category words (`college`, `bakery`).\nDefault: every place.","example":"education","in":"query","name":"categories","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureCollection"}}},"description":"Places matching the text, best first"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"A parameter is missing or invalid"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/search/hosted/quotas-and-errors#errors"}}}}},"403":{"description":"`origin_not_allowed` (a publishable key used from an origin it does not list), `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly geocoding allowance of 50000 requests on the Free plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"geocoding","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/search/hosted/quotas-and-errors#errors"}}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The index could not be read"}},"summary":"Forward geocoding: finds places matching free text.","tags":["geocoding"]}},"/v1/search/structured":{"get":{"description":"Every word of every field that is set is required. When that finds fewer\nthan `size` places, the query is relaxed to about three quarters of the\nwords.\nA two-letter `country` is used as a country filter rather than as words\nto match. Ranking works as in `/v1/search`.","operationId":"structured","parameters":[{"description":"House number and street, or a venue name.","example":"10 Downing Street","in":"query","name":"address","required":false,"schema":{"type":"string"}},{"description":"Neighbourhood.","in":"query","name":"neighbourhood","required":false,"schema":{"type":"string"}},{"description":"Borough.","in":"query","name":"borough","required":false,"schema":{"type":"string"}},{"description":"City or town.","example":"London","in":"query","name":"locality","required":false,"schema":{"type":"string"}},{"description":"County.","in":"query","name":"county","required":false,"schema":{"type":"string"}},{"description":"State or province.","in":"query","name":"region","required":false,"schema":{"type":"string"}},{"description":"Postal code.","in":"query","name":"postalcode","required":false,"schema":{"type":"string"}},{"description":"Country name, or an ISO 3166-1 alpha-2 code, which filters by\ncountry instead of matching words.","example":"GB","in":"query","name":"country","required":false,"schema":{"type":"string"}},{"description":"Number of results, from 1 to 40. Default 10.","example":10,"in":"query","name":"size","required":false,"schema":{"format":"int32","maximum":40,"minimum":1,"type":"integer"}},{"description":"Comma-separated layers to search: `venue` (points of interest),\n`address`, `street`, `locality` (cities, towns, villages), `county`,\n`region` and `country`. Default: all.","example":"venue","in":"query","name":"layers","required":false,"schema":{"type":"string"}},{"description":"Comma-separated ISO 3166-1 alpha-2 country codes to search in, in any\ncase. Default: every country.","example":"FR,BE","in":"query","name":"boundary.country","required":false,"schema":{"type":"string"}},{"description":"Latitude of a point whose surroundings rank higher. Set together with\n`focus.point.lon`.","example":48.8566,"in":"query","name":"focus.point.lat","required":false,"schema":{"format":"double","maximum":90,"minimum":-90,"type":"number"}},{"description":"Longitude of a point whose surroundings rank higher. Set together with\n`focus.point.lat`.","example":2.3522,"in":"query","name":"focus.point.lon","required":false,"schema":{"format":"double","maximum":180,"minimum":-180,"type":"number"}},{"description":"Language of the names returned, as a two- or three-letter code (`hi`,\n`mr`; `hi-IN` reads as `hi`). A place with a name in that language\nreturns it; others keep their name. Default: each place's own name.","example":"hi","in":"query","name":"lang","required":false,"schema":{"type":"string"}},{"description":"Comma-separated categories to keep, at most 8: Pelias taxonomy names\n(`education`, `health`, `food`, `transport`, `religion`, `finance`,\n`accommodation`, `retail`) or category words (`college`, `bakery`).\nDefault: every place.","example":"education","in":"query","name":"categories","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureCollection"}}},"description":"Places matching the fields, best first"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No field is set, or a parameter is invalid"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/search/hosted/quotas-and-errors#errors"}}}}},"403":{"description":"`origin_not_allowed` (a publishable key used from an origin it does not list), `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly geocoding allowance of 50000 requests on the Free plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"geocoding","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/search/hosted/quotas-and-errors#errors"}}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"The index could not be read"}},"summary":"Structured geocoding: finds places from separate address fields.","tags":["geocoding"]}},"/v1/tiles/{set}.json":{"get":{"operationId":"tileJson","summary":"TileJSON of a tile set","description":"Not counted against the tile allowance.","parameters":[{"name":"set","in":"path","required":true,"description":"The tile set. The hosted API serves `india` (India tile set today; planet tiles in development).","schema":{"type":"string","pattern":"^[a-z0-9-]+$","examples":["india"]}}],"responses":{"200":{"description":"TileJSON 3.0.0","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TileJson"}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/tiles/hosted/limits"}}}}},"403":{"description":"`origin_not_allowed` (a publishable key used from an origin it does not list), `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"404":{"description":"`not_found`: unknown tile set","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown tileset 'world'.","docs":"https://docs.geolith.app/tiles/hosted/limits"}}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/tiles/{set}/{z}/{x}/{y}.{format}":{"get":{"operationId":"tile","summary":"One map tile","description":"MVT and MLT tiles go out gzipped (`Content-Encoding: gzip`) to clients that accept gzip. Cached for a day (`Cache-Control: public, max-age=86400`).","parameters":[{"name":"set","in":"path","required":true,"description":"The tile set. The hosted API serves `india` (India tile set today; planet tiles in development).","schema":{"type":"string","pattern":"^[a-z0-9-]+$","examples":["india"]}},{"name":"z","in":"path","required":true,"description":"Zoom","schema":{"type":"integer","minimum":0,"maximum":99}},{"name":"x","in":"path","required":true,"description":"Column","schema":{"type":"integer","minimum":0}},{"name":"y","in":"path","required":true,"description":"Row","schema":{"type":"integer","minimum":0}},{"name":"format","in":"path","required":true,"description":"File extension; the archive decides the content type.","schema":{"type":"string","enum":["mvt","pbf","mlt","png","jpg","webp","avif"]}}],"responses":{"200":{"description":"The tile","content":{"application/vnd.mapbox-vector-tile":{"schema":{"type":"string","format":"binary"}},"application/vnd.maplibre-vector-tile":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}},"image/avif":{"schema":{"type":"string","format":"binary"}}}},"204":{"description":"No tile here: outside the zoom range or empty"},"400":{"description":"`tile_error`: tile coordinates are out of range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TileError"}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/tiles/hosted/limits"}}}}},"403":{"description":"`origin_not_allowed` (a publishable key used from an origin it does not list), `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"404":{"description":"`not_found`: unknown tile set","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown tileset 'world'.","docs":"https://docs.geolith.app/tiles/hosted/limits"}}}}},"406":{"description":"`tile_error`: the archive stores tiles in an encoding the request does not accept","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TileError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 200000 requests on the Free plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/tiles/hosted/limits"}}}}}}}},"/v1/assets/splat/{path}":{"get":{"operationId":"splatAsset","summary":"One file of the sample splat assets","description":"An OGC 3D Tiles 1.1 `tileset.json`, its `.glb` tiles, `.bin` files or a `.spz` scene. `path` may contain `/`. Answers a single `Range` with 206.","parameters":[{"name":"path","in":"path","required":true,"description":"File path under the assets, for example `cactus/tileset.json`.","schema":{"type":"string","pattern":"\\.(json|glb|spz|bin)$"}},{"name":"Range","in":"header","required":false,"schema":{"type":"string","examples":["bytes=0-1023"]}}],"responses":{"200":{"description":"The whole file","content":{"application/json":{"schema":{"type":"string","format":"binary"}},"model/gltf-binary":{"schema":{"type":"string","format":"binary"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"One byte range","content":{"application/json":{"schema":{"type":"string","format":"binary"}},"model/gltf-binary":{"schema":{"type":"string","format":"binary"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/tiles/hosted/limits"}}}}},"403":{"description":"`origin_not_allowed` (a publishable key used from an origin it does not list), `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"404":{"description":"`not_found`: unknown asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TileError"}}}},"416":{"description":"The range starts past the end of the file"},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 200000 requests on the Free plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/tiles/hosted/limits"}}}}}}}},"/v1/route":{"get":{"operationId":"routeGet","summary":"A route between two or more locations","description":"Secret key (gc_sk_…) only, from a server. The request is the `json` parameter.","parameters":[{"name":"json","in":"query","required":true,"description":"The Valhalla request as JSON","schema":{"type":"string"}}],"responses":{"200":{"description":"The Valhalla answer","headers":{"X-Routing-Units":{"description":"Routing units billed for this request","schema":{"type":"string"}},"X-Routing-City":{"description":"The city that answered","schema":{"type":"string"}},"X-Routing-Build":{"description":"Build date of the city map","schema":{"type":"string"}},"X-Quota-Product":{"description":"The allowance the request counts against","schema":{"type":"string"}},"X-Quota-Limit":{"description":"The monthly allowance","schema":{"type":"string"}},"X-Quota-Remaining":{"description":"What is left of it","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"400":{"description":"A router refusal (`RouterError`, not billed), or `invalid_request` from the gateway (`GatewayError`)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RouterError"},{"$ref":"#/components/schemas/GatewayError"}]}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"403":{"description":"`secret_key_required` (publishable keys and OAuth tokens are refused), `origin_not_allowed` or `email_not_verified`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"secret_key_required","message":"Routing takes a secret key (gc_sk_…) from a server; publishable keys and OAuth tokens are refused.","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"413":{"description":"`payload_too_large`: the body is over 1,048,576 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly routing allowance of 10000 units on the Free plan has fewer units left than this request needs (12 left). It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"routing","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"503":{"description":"`service_unavailable`: routing is briefly unavailable; retry after 1 second (not billed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"post":{"operationId":"route","summary":"A route between two or more locations","description":"Secret key (gc_sk_…) only, from a server. The body is the Valhalla request, at most 1,048,576 bytes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"responses":{"200":{"description":"The Valhalla answer","headers":{"X-Routing-Units":{"description":"Routing units billed for this request","schema":{"type":"string"}},"X-Routing-City":{"description":"The city that answered","schema":{"type":"string"}},"X-Routing-Build":{"description":"Build date of the city map","schema":{"type":"string"}},"X-Quota-Product":{"description":"The allowance the request counts against","schema":{"type":"string"}},"X-Quota-Limit":{"description":"The monthly allowance","schema":{"type":"string"}},"X-Quota-Remaining":{"description":"What is left of it","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"400":{"description":"A router refusal (`RouterError`, not billed), or `invalid_request` from the gateway (`GatewayError`)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RouterError"},{"$ref":"#/components/schemas/GatewayError"}]}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"403":{"description":"`secret_key_required` (publishable keys and OAuth tokens are refused), `origin_not_allowed` or `email_not_verified`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"secret_key_required","message":"Routing takes a secret key (gc_sk_…) from a server; publishable keys and OAuth tokens are refused.","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"413":{"description":"`payload_too_large`: the body is over 1,048,576 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly routing allowance of 10000 units on the Free plan has fewer units left than this request needs (12 left). It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"routing","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"503":{"description":"`service_unavailable`: routing is briefly unavailable; retry after 1 second (not billed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/sources-to-targets":{"get":{"operationId":"sourcesToTargetsGet","summary":"A time-distance matrix","description":"Secret key (gc_sk_…) only, from a server. The request is the `json` parameter.","parameters":[{"name":"json","in":"query","required":true,"description":"The Valhalla request as JSON","schema":{"type":"string"}}],"responses":{"200":{"description":"The Valhalla answer","headers":{"X-Routing-Units":{"description":"Routing units billed for this request","schema":{"type":"string"}},"X-Routing-City":{"description":"The city that answered","schema":{"type":"string"}},"X-Routing-Build":{"description":"Build date of the city map","schema":{"type":"string"}},"X-Quota-Product":{"description":"The allowance the request counts against","schema":{"type":"string"}},"X-Quota-Limit":{"description":"The monthly allowance","schema":{"type":"string"}},"X-Quota-Remaining":{"description":"What is left of it","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"400":{"description":"A router refusal (`RouterError`, not billed), or `invalid_request` from the gateway (`GatewayError`)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RouterError"},{"$ref":"#/components/schemas/GatewayError"}]}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"403":{"description":"`secret_key_required` (publishable keys and OAuth tokens are refused), `origin_not_allowed` or `email_not_verified`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"secret_key_required","message":"Routing takes a secret key (gc_sk_…) from a server; publishable keys and OAuth tokens are refused.","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"413":{"description":"`payload_too_large`: the body is over 1,048,576 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly routing allowance of 10000 units on the Free plan has fewer units left than this request needs (12 left). It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"routing","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"503":{"description":"`service_unavailable`: routing is briefly unavailable; retry after 1 second (not billed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"post":{"operationId":"sourcesToTargets","summary":"A time-distance matrix","description":"Secret key (gc_sk_…) only, from a server. The body is the Valhalla request, at most 1,048,576 bytes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"responses":{"200":{"description":"The Valhalla answer","headers":{"X-Routing-Units":{"description":"Routing units billed for this request","schema":{"type":"string"}},"X-Routing-City":{"description":"The city that answered","schema":{"type":"string"}},"X-Routing-Build":{"description":"Build date of the city map","schema":{"type":"string"}},"X-Quota-Product":{"description":"The allowance the request counts against","schema":{"type":"string"}},"X-Quota-Limit":{"description":"The monthly allowance","schema":{"type":"string"}},"X-Quota-Remaining":{"description":"What is left of it","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"400":{"description":"A router refusal (`RouterError`, not billed), or `invalid_request` from the gateway (`GatewayError`)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RouterError"},{"$ref":"#/components/schemas/GatewayError"}]}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"403":{"description":"`secret_key_required` (publishable keys and OAuth tokens are refused), `origin_not_allowed` or `email_not_verified`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"secret_key_required","message":"Routing takes a secret key (gc_sk_…) from a server; publishable keys and OAuth tokens are refused.","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"413":{"description":"`payload_too_large`: the body is over 1,048,576 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly routing allowance of 10000 units on the Free plan has fewer units left than this request needs (12 left). It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"routing","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"503":{"description":"`service_unavailable`: routing is briefly unavailable; retry after 1 second (not billed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/isochrone":{"get":{"operationId":"isochroneGet","summary":"Isochrone or isodistance contours","description":"Secret key (gc_sk_…) only, from a server. The request is the `json` parameter.","parameters":[{"name":"json","in":"query","required":true,"description":"The Valhalla request as JSON","schema":{"type":"string"}}],"responses":{"200":{"description":"The Valhalla answer","headers":{"X-Routing-Units":{"description":"Routing units billed for this request","schema":{"type":"string"}},"X-Routing-City":{"description":"The city that answered","schema":{"type":"string"}},"X-Routing-Build":{"description":"Build date of the city map","schema":{"type":"string"}},"X-Quota-Product":{"description":"The allowance the request counts against","schema":{"type":"string"}},"X-Quota-Limit":{"description":"The monthly allowance","schema":{"type":"string"}},"X-Quota-Remaining":{"description":"What is left of it","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"400":{"description":"A router refusal (`RouterError`, not billed), or `invalid_request` from the gateway (`GatewayError`)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RouterError"},{"$ref":"#/components/schemas/GatewayError"}]}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"403":{"description":"`secret_key_required` (publishable keys and OAuth tokens are refused), `origin_not_allowed` or `email_not_verified`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"secret_key_required","message":"Routing takes a secret key (gc_sk_…) from a server; publishable keys and OAuth tokens are refused.","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"413":{"description":"`payload_too_large`: the body is over 1,048,576 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly routing allowance of 10000 units on the Free plan has fewer units left than this request needs (12 left). It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"routing","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"503":{"description":"`service_unavailable`: routing is briefly unavailable; retry after 1 second (not billed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"post":{"operationId":"isochrone","summary":"Isochrone or isodistance contours","description":"Secret key (gc_sk_…) only, from a server. The body is the Valhalla request, at most 1,048,576 bytes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"responses":{"200":{"description":"The Valhalla answer","headers":{"X-Routing-Units":{"description":"Routing units billed for this request","schema":{"type":"string"}},"X-Routing-City":{"description":"The city that answered","schema":{"type":"string"}},"X-Routing-Build":{"description":"Build date of the city map","schema":{"type":"string"}},"X-Quota-Product":{"description":"The allowance the request counts against","schema":{"type":"string"}},"X-Quota-Limit":{"description":"The monthly allowance","schema":{"type":"string"}},"X-Quota-Remaining":{"description":"What is left of it","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"400":{"description":"A router refusal (`RouterError`, not billed), or `invalid_request` from the gateway (`GatewayError`)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RouterError"},{"$ref":"#/components/schemas/GatewayError"}]}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"403":{"description":"`secret_key_required` (publishable keys and OAuth tokens are refused), `origin_not_allowed` or `email_not_verified`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"secret_key_required","message":"Routing takes a secret key (gc_sk_…) from a server; publishable keys and OAuth tokens are refused.","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"413":{"description":"`payload_too_large`: the body is over 1,048,576 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly routing allowance of 10000 units on the Free plan has fewer units left than this request needs (12 left). It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"routing","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"503":{"description":"`service_unavailable`: routing is briefly unavailable; retry after 1 second (not billed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/trace-route":{"get":{"operationId":"traceRouteGet","summary":"Map-match a GPS trace to a route","description":"Secret key (gc_sk_…) only, from a server. The request is the `json` parameter.","parameters":[{"name":"json","in":"query","required":true,"description":"The Valhalla request as JSON","schema":{"type":"string"}}],"responses":{"200":{"description":"The Valhalla answer","headers":{"X-Routing-Units":{"description":"Routing units billed for this request","schema":{"type":"string"}},"X-Routing-City":{"description":"The city that answered","schema":{"type":"string"}},"X-Routing-Build":{"description":"Build date of the city map","schema":{"type":"string"}},"X-Quota-Product":{"description":"The allowance the request counts against","schema":{"type":"string"}},"X-Quota-Limit":{"description":"The monthly allowance","schema":{"type":"string"}},"X-Quota-Remaining":{"description":"What is left of it","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"400":{"description":"A router refusal (`RouterError`, not billed), or `invalid_request` from the gateway (`GatewayError`)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RouterError"},{"$ref":"#/components/schemas/GatewayError"}]}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"403":{"description":"`secret_key_required` (publishable keys and OAuth tokens are refused), `origin_not_allowed` or `email_not_verified`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"secret_key_required","message":"Routing takes a secret key (gc_sk_…) from a server; publishable keys and OAuth tokens are refused.","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"413":{"description":"`payload_too_large`: the body is over 1,048,576 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly routing allowance of 10000 units on the Free plan has fewer units left than this request needs (12 left). It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"routing","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"503":{"description":"`service_unavailable`: routing is briefly unavailable; retry after 1 second (not billed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"post":{"operationId":"traceRoute","summary":"Map-match a GPS trace to a route","description":"Secret key (gc_sk_…) only, from a server. The body is the Valhalla request, at most 1,048,576 bytes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"responses":{"200":{"description":"The Valhalla answer","headers":{"X-Routing-Units":{"description":"Routing units billed for this request","schema":{"type":"string"}},"X-Routing-City":{"description":"The city that answered","schema":{"type":"string"}},"X-Routing-Build":{"description":"Build date of the city map","schema":{"type":"string"}},"X-Quota-Product":{"description":"The allowance the request counts against","schema":{"type":"string"}},"X-Quota-Limit":{"description":"The monthly allowance","schema":{"type":"string"}},"X-Quota-Remaining":{"description":"What is left of it","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"400":{"description":"A router refusal (`RouterError`, not billed), or `invalid_request` from the gateway (`GatewayError`)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RouterError"},{"$ref":"#/components/schemas/GatewayError"}]}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"403":{"description":"`secret_key_required` (publishable keys and OAuth tokens are refused), `origin_not_allowed` or `email_not_verified`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"secret_key_required","message":"Routing takes a secret key (gc_sk_…) from a server; publishable keys and OAuth tokens are refused.","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"413":{"description":"`payload_too_large`: the body is over 1,048,576 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly routing allowance of 10000 units on the Free plan has fewer units left than this request needs (12 left). It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"routing","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"503":{"description":"`service_unavailable`: routing is briefly unavailable; retry after 1 second (not billed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/trace-attributes":{"get":{"operationId":"traceAttributesGet","summary":"Map-match a GPS trace to edge attributes","description":"Secret key (gc_sk_…) only, from a server. The request is the `json` parameter.","parameters":[{"name":"json","in":"query","required":true,"description":"The Valhalla request as JSON","schema":{"type":"string"}}],"responses":{"200":{"description":"The Valhalla answer","headers":{"X-Routing-Units":{"description":"Routing units billed for this request","schema":{"type":"string"}},"X-Routing-City":{"description":"The city that answered","schema":{"type":"string"}},"X-Routing-Build":{"description":"Build date of the city map","schema":{"type":"string"}},"X-Quota-Product":{"description":"The allowance the request counts against","schema":{"type":"string"}},"X-Quota-Limit":{"description":"The monthly allowance","schema":{"type":"string"}},"X-Quota-Remaining":{"description":"What is left of it","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"400":{"description":"A router refusal (`RouterError`, not billed), or `invalid_request` from the gateway (`GatewayError`)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RouterError"},{"$ref":"#/components/schemas/GatewayError"}]}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"403":{"description":"`secret_key_required` (publishable keys and OAuth tokens are refused), `origin_not_allowed` or `email_not_verified`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"secret_key_required","message":"Routing takes a secret key (gc_sk_…) from a server; publishable keys and OAuth tokens are refused.","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"413":{"description":"`payload_too_large`: the body is over 1,048,576 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly routing allowance of 10000 units on the Free plan has fewer units left than this request needs (12 left). It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"routing","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"503":{"description":"`service_unavailable`: routing is briefly unavailable; retry after 1 second (not billed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"post":{"operationId":"traceAttributes","summary":"Map-match a GPS trace to edge attributes","description":"Secret key (gc_sk_…) only, from a server. The body is the Valhalla request, at most 1,048,576 bytes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"responses":{"200":{"description":"The Valhalla answer","headers":{"X-Routing-Units":{"description":"Routing units billed for this request","schema":{"type":"string"}},"X-Routing-City":{"description":"The city that answered","schema":{"type":"string"}},"X-Routing-Build":{"description":"Build date of the city map","schema":{"type":"string"}},"X-Quota-Product":{"description":"The allowance the request counts against","schema":{"type":"string"}},"X-Quota-Limit":{"description":"The monthly allowance","schema":{"type":"string"}},"X-Quota-Remaining":{"description":"What is left of it","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValhallaJson"}}}},"400":{"description":"A router refusal (`RouterError`, not billed), or `invalid_request` from the gateway (`GatewayError`)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RouterError"},{"$ref":"#/components/schemas/GatewayError"}]}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"403":{"description":"`secret_key_required` (publishable keys and OAuth tokens are refused), `origin_not_allowed` or `email_not_verified`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"secret_key_required","message":"Routing takes a secret key (gc_sk_…) from a server; publishable keys and OAuth tokens are refused.","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"413":{"description":"`payload_too_large`: the body is over 1,048,576 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly routing allowance of 10000 units on the Free plan has fewer units left than this request needs (12 left). It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"routing","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"503":{"description":"`service_unavailable`: routing is briefly unavailable; retry after 1 second (not billed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/routing/coverage":{"get":{"operationId":"routingCoverage","summary":"The 10 cities as GeoJSON","description":"Any API key (a publishable key under its origin rule too); not counted. Each city carries its service `limits`. `Cache-Control: private, max-age=300`.","responses":{"200":{"description":"A GeoJSON FeatureCollection","content":{"application/geo+json":{"schema":{"type":"object"}},"application/json":{"schema":{"type":"object"}}}},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/routing/coverage-and-errors"}}}}},"403":{"description":"`origin_not_allowed` (a publishable key used from an origin it does not list), `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"404":{"description":"`not_found`: no routing coverage is published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}},"503":{"description":"`service_unavailable`: retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/datasets/files/{dataset}/{country}/current.json":{"get":{"operationId":"datasetFile1","summary":"One dataset file","description":"The pointer to the current build; rewritten by each build (`Cache-Control: private, max-age=60, must-revalidate`). Scale plan only. Counts as one map tile.","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"Range","in":"header","required":false,"description":"One `bytes=` range","schema":{"type":"string","examples":["bytes=0-16383"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The whole file","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"One byte range","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (`If-None-Match` names the ETag)"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"416":{"description":"The range cannot be served"},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"head":{"operationId":"datasetFileHead1","summary":"Headers of one dataset file","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The headers, with `Content-Length`","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}}},"304":{"description":"Not modified"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/datasets/files/{dataset}/{country}/{build}/index.json":{"get":{"operationId":"datasetFile2","summary":"One dataset file","description":"`index.json` of a build; a build is never rewritten (`Cache-Control: private, max-age=31536000, immutable`). Scale plan only. Counts as one map tile.","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"Range","in":"header","required":false,"description":"One `bytes=` range","schema":{"type":"string","examples":["bytes=0-16383"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The whole file","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"One byte range","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (`If-None-Match` names the ETag)"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"416":{"description":"The range cannot be served"},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"head":{"operationId":"datasetFileHead2","summary":"Headers of one dataset file","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The headers, with `Content-Length`","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}}},"304":{"description":"Not modified"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/datasets/files/{dataset}/{country}/{build}/series.json":{"get":{"operationId":"datasetFile3","summary":"One dataset file","description":"`series.json` of a build; a build is never rewritten (`Cache-Control: private, max-age=31536000, immutable`). Scale plan only. Counts as one map tile.","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"Range","in":"header","required":false,"description":"One `bytes=` range","schema":{"type":"string","examples":["bytes=0-16383"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The whole file","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"One byte range","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (`If-None-Match` names the ETag)"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"416":{"description":"The range cannot be served"},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"head":{"operationId":"datasetFileHead3","summary":"Headers of one dataset file","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The headers, with `Content-Length`","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}}},"304":{"description":"Not modified"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/datasets/files/{dataset}/{country}/{build}/numbers.csv":{"get":{"operationId":"datasetFile4","summary":"One dataset file","description":"`numbers.csv` of a build; a build is never rewritten (`Cache-Control: private, max-age=31536000, immutable`). Scale plan only. Counts as one map tile.","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"Range","in":"header","required":false,"description":"One `bytes=` range","schema":{"type":"string","examples":["bytes=0-16383"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The whole file","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"text/csv; charset=utf-8":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"One byte range","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"text/csv; charset=utf-8":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (`If-None-Match` names the ETag)"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"416":{"description":"The range cannot be served"},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"head":{"operationId":"datasetFileHead4","summary":"Headers of one dataset file","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The headers, with `Content-Length`","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}}},"304":{"description":"Not modified"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/datasets/files/{dataset}/{country}/{build}/numbers.parquet":{"get":{"operationId":"datasetFile5","summary":"One dataset file","description":"`numbers.parquet` of a build; a build is never rewritten (`Cache-Control: private, max-age=31536000, immutable`). Scale plan only. Counts as one map tile.","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"Range","in":"header","required":false,"description":"One `bytes=` range","schema":{"type":"string","examples":["bytes=0-16383"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The whole file","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/vnd.apache.parquet":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"One byte range","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/vnd.apache.parquet":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (`If-None-Match` names the ETag)"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"416":{"description":"The range cannot be served"},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"head":{"operationId":"datasetFileHead5","summary":"Headers of one dataset file","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The headers, with `Content-Length`","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}}},"304":{"description":"Not modified"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/datasets/files/{dataset}/{country}/{build}/tiles.pmtiles":{"get":{"operationId":"datasetFile6","summary":"One dataset file","description":"`tiles.pmtiles` of a build; a build is never rewritten (`Cache-Control: private, max-age=31536000, immutable`). Scale plan only. Counts as one map tile.","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"Range","in":"header","required":false,"description":"One `bytes=` range","schema":{"type":"string","examples":["bytes=0-16383"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The whole file","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/vnd.pmtiles":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"One byte range","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/vnd.pmtiles":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (`If-None-Match` names the ETag)"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"416":{"description":"The range cannot be served"},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"head":{"operationId":"datasetFileHead6","summary":"Headers of one dataset file","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The headers, with `Content-Length`","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}}},"304":{"description":"Not modified"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/datasets/files/{dataset}/{country}/{build}/tiles/{period}.pmtiles":{"get":{"operationId":"datasetFile7","summary":"One dataset file","description":"The tile archive of one period of a build. Scale plan only. Counts as one map tile.","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"period","in":"path","required":true,"description":"Period date","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"Range","in":"header","required":false,"description":"One `bytes=` range","schema":{"type":"string","examples":["bytes=0-16383"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The whole file","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/vnd.pmtiles":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"One byte range","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/vnd.pmtiles":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (`If-None-Match` names the ETag)"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"416":{"description":"The range cannot be served"},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"head":{"operationId":"datasetFileHead7","summary":"Headers of one dataset file","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"period","in":"path","required":true,"description":"Period date","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The headers, with `Content-Length`","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}}},"304":{"description":"Not modified"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/datasets/files/{dataset}/{country}/{build}/areas/{area}.json":{"get":{"operationId":"datasetFile8","summary":"One dataset file","description":"The numbers of one area of a build. Scale plan only. Counts as one map tile.","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"area","in":"path","required":true,"description":"Area id","schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"Range","in":"header","required":false,"description":"One `bytes=` range","schema":{"type":"string","examples":["bytes=0-16383"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The whole file","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"One byte range","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (`If-None-Match` names the ETag)"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"416":{"description":"The range cannot be served"},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"head":{"operationId":"datasetFileHead8","summary":"Headers of one dataset file","parameters":[{"name":"dataset","in":"path","required":true,"description":"Dataset id (not `boundaries`)","schema":{"type":"string","pattern":"^[a-z]{1,32}$","examples":["rainfall"]}},{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"build","in":"path","required":true,"description":"Build id: the release date and the write instant","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{8}T\\d{4}Z$","examples":["2026-11-10.20261117T1431Z"]}},{"name":"area","in":"path","required":true,"description":"Area id","schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The headers, with `Content-Length`","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}}},"304":{"description":"Not modified"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/datasets/files/boundaries/{country}/{release}/areas.pmtiles":{"get":{"operationId":"datasetFile9","summary":"One dataset file","description":"`areas.pmtiles` of a boundary release. Scale plan only. Counts as one map tile.","parameters":[{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"release","in":"path","required":true,"description":"Boundary release, with `-r<N>` when its files were rebuilt","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{1,3}(?:-r[1-9]\\d?)?$"}},{"name":"Range","in":"header","required":false,"description":"One `bytes=` range","schema":{"type":"string","examples":["bytes=0-16383"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The whole file","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/vnd.pmtiles":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"One byte range","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/vnd.pmtiles":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (`If-None-Match` names the ETag)"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"416":{"description":"The range cannot be served"},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"head":{"operationId":"datasetFileHead9","summary":"Headers of one dataset file","parameters":[{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"release","in":"path","required":true,"description":"Boundary release, with `-r<N>` when its files were rebuilt","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{1,3}(?:-r[1-9]\\d?)?$"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The headers, with `Content-Length`","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}}},"304":{"description":"Not modified"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/datasets/files/boundaries/{country}/{release}/areas.parquet":{"get":{"operationId":"datasetFile10","summary":"One dataset file","description":"`areas.parquet` of a boundary release. Scale plan only. Counts as one map tile.","parameters":[{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"release","in":"path","required":true,"description":"Boundary release, with `-r<N>` when its files were rebuilt","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{1,3}(?:-r[1-9]\\d?)?$"}},{"name":"Range","in":"header","required":false,"description":"One `bytes=` range","schema":{"type":"string","examples":["bytes=0-16383"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The whole file","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/vnd.apache.parquet":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"One byte range","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"application/vnd.apache.parquet":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (`If-None-Match` names the ETag)"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"416":{"description":"The range cannot be served"},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"head":{"operationId":"datasetFileHead10","summary":"Headers of one dataset file","parameters":[{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"release","in":"path","required":true,"description":"Boundary release, with `-r<N>` when its files were rebuilt","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{1,3}(?:-r[1-9]\\d?)?$"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The headers, with `Content-Length`","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}}},"304":{"description":"Not modified"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}},"/v1/datasets/files/boundaries/{country}/{release}/LICENSE.txt":{"get":{"operationId":"datasetFile11","summary":"One dataset file","description":"`LICENSE.txt` of a boundary release. Scale plan only. Counts as one map tile.","parameters":[{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"release","in":"path","required":true,"description":"Boundary release, with `-r<N>` when its files were rebuilt","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{1,3}(?:-r[1-9]\\d?)?$"}},{"name":"Range","in":"header","required":false,"description":"One `bytes=` range","schema":{"type":"string","examples":["bytes=0-16383"]}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The whole file","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"text/plain; charset=utf-8":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"One byte range","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}},"content":{"text/plain; charset=utf-8":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Not modified (`If-None-Match` names the ETag)"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"416":{"description":"The range cannot be served"},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}},"head":{"operationId":"datasetFileHead11","summary":"Headers of one dataset file","parameters":[{"name":"country","in":"path","required":true,"description":"Country code","schema":{"type":"string","pattern":"^[a-z]{2}$","examples":["in"]}},{"name":"release","in":"path","required":true,"description":"Boundary release, with `-r<N>` when its files were rebuilt","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}\\.\\d{1,3}(?:-r[1-9]\\d?)?$"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The headers, with `Content-Length`","headers":{"ETag":{"schema":{"type":"string"}},"Accept-Ranges":{"schema":{"const":"bytes"}}}},"304":{"description":"Not modified"},"401":{"description":"`missing_api_key`, `invalid_api_key` (the message names the console Keys page) or `invalid_token` (OAuth access token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"invalid_api_key","message":"The API key is not valid. Check the key at https://console.geolith.app/dashboard/keys (keys start gc_sk_ or gc_pk_).","docs":"https://docs.geolith.app/datasets/overview"}}}}},"403":{"description":"`plan_required` (dataset files need the Scale plan; `plan` names it), `origin_not_allowed`, `email_not_verified` or `insufficient_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"plan_required","message":"Dataset files need the Scale plan. Upgrade under Billing in the console: https://console.geolith.app/dashboard/billing","plan":"scale","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"404":{"description":"`not_found`: unknown dataset file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"not_found","message":"Unknown dataset file.","docs":"https://docs.geolith.app/datasets/overview"}}}}},"429":{"description":"`rate_limited` (retry after `Retry-After`) or `quota_exceeded` (the monthly allowance is used up; `resets_at` and `upgrade_url` say when it returns and where to upgrade)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"},"example":{"error":{"code":"quota_exceeded","message":"Monthly tiles allowance of 30000000 requests on the Scale plan is used up. It resets on 1 Dec 00:00 UTC. Upgrade: https://console.geolith.app/dashboard/billing","product":"tiles","reason":"allowance","resets_at":"2026-12-01T00:00:00.000Z","upgrade_url":"https://console.geolith.app/dashboard/billing","docs":"https://docs.geolith.app/datasets/overview"}}}}},"503":{"description":"`service_unavailable`: dataset files are briefly unavailable; retry after 1 second","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayError"}}}}}}}},"components":{"schemas":{"GatewayError":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","docs"],"properties":{"code":{"type":"string","enum":["missing_api_key","invalid_api_key","invalid_token","insufficient_scope","origin_not_allowed","email_not_verified","rate_limited","quota_exceeded","not_found","method_not_allowed","secret_key_required","plan_required","invalid_request","invalid_place","invalid_parameter","payload_too_large","custom_places_limit","service_unavailable"]},"message":{"type":"string"},"docs":{"type":"string","format":"uri","description":"The errors page of the request's product: Search, Maps (/tiles/hosted/limits), Routing (/routing/coverage-and-errors) or Data (/datasets/overview)."},"product":{"type":"string","enum":["geocoding","tiles","routing"],"description":"`quota_exceeded`: the allowance that ran out."},"reason":{"type":"string","enum":["allowance","free_daily_ceiling"],"description":"`quota_exceeded`: why the request was refused."},"resets_at":{"type":"string","format":"date-time","description":"`quota_exceeded`: when the allowance comes back (the next month, or 00:00 UTC for the free daily ceiling)."},"upgrade_url":{"type":"string","format":"uri","description":"`quota_exceeded` and `plan_required`: the Billing page."},"plan":{"type":"string","description":"`plan_required`: the plan the request needs."}}}}},"AskedGid":{"description":"One gid of a `/v1/place` request, split into its parts.","properties":{"id":{"description":"Record id, as a decimal string.","type":"string"},"layer":{"description":"Layer, for example `venue`.","type":"string"},"source":{"description":"Always `geolith`.","type":"string"}},"required":["source","layer","id"],"type":"object"},"Engine":{"description":"The server that answered.","properties":{"name":{"description":"Always `geolith-search`.","example":"geolith-search","type":"string"},"version":{"description":"Server version.","type":"string"}},"required":["name","version"],"type":"object"},"ErrorGeocoding":{"description":"The `geocoding` block of an error response.","properties":{"errors":{"description":"What was wrong with the request, or that the index could not be read.","example":["size must be between 1 and 40"],"items":{"type":"string"},"type":"array"}},"required":["errors"],"type":"object"},"ErrorResponse":{"description":"An error, in the Pelias shape: an empty `FeatureCollection` with the\nmessages in `geocoding.errors`.","properties":{"features":{"description":"Always empty.","items":{"$ref":"#/components/schemas/Feature"},"type":"array"},"geocoding":{"$ref":"#/components/schemas/ErrorGeocoding","description":"The error messages."},"type":{"description":"Always `FeatureCollection`.","example":"FeatureCollection","type":"string"}},"required":["geocoding","type","features"],"type":"object"},"Feature":{"description":"One place, as a GeoJSON `Feature`.","properties":{"bbox":{"description":"`[west, south, east, north]` around the place's outline. Absent when\nthe place has none.","example":[77.2285,28.612,77.2305,28.6138],"items":{"format":"double","type":"number"},"type":"array"},"geometry":{"$ref":"#/components/schemas/Geometry","description":"Where the place is."},"properties":{"$ref":"#/components/schemas/Properties","description":"What the place is."},"type":{"description":"Always `Feature`.","example":"Feature","type":"string"}},"required":["type","geometry","properties"],"type":"object"},"FeatureCollection":{"description":"A Pelias `FeatureCollection`: the places found, and a description of the\nquery.","properties":{"bbox":{"description":"`[west, south, east, north]` around every feature. Absent when nothing\nwas found.","example":[2.2945,48.8584,2.2945,48.8584],"items":{"format":"double","type":"number"},"type":"array"},"features":{"description":"The places, best match first.","items":{"$ref":"#/components/schemas/Feature"},"type":"array"},"geocoding":{"$ref":"#/components/schemas/Geocoding","description":"What was searched and how it was ranked."},"type":{"description":"Always `FeatureCollection`.","example":"FeatureCollection","type":"string"}},"required":["geocoding","type","features"],"type":"object"},"Geocoding":{"description":"The `geocoding` block of a response.","properties":{"attribution":{"description":"Where the data comes from.","type":"string"},"engine":{"$ref":"#/components/schemas/Engine","description":"The server that answered."},"query":{"$ref":"#/components/schemas/QueryEcho","description":"The request as the server understood it."},"version":{"description":"Pelias response format version, `0.2`.","example":"0.2","type":"string"}},"required":["version","attribution","query","engine"],"type":"object"},"Geometry":{"description":"A GeoJSON geometry: the place's `Point`, or with `/v1/place`\n`geometry=true` its outline as a `Polygon` or `MultiPolygon`.","properties":{"coordinates":{"description":"`[longitude, latitude]` in WGS 84 for a `Point`; rings of such\npositions for a `Polygon`, and polygons of rings for a\n`MultiPolygon`.","example":[2.2945,48.8584],"items":{},"type":"array"},"type":{"$ref":"#/components/schemas/GeometryKind","description":"`Point`, `Polygon` or `MultiPolygon`."}},"required":["type","coordinates"],"type":"object"},"GeometryKind":{"description":"The GeoJSON geometry types a response carries.","enum":["Point","Polygon","MultiPolygon"],"type":"string"},"Health":{"description":"The `/health` response.","properties":{"places":{"description":"Places in the `.glx` file.","example":6182313,"format":"int64","minimum":0,"type":"integer"},"status":{"description":"Always `ok`.","example":"ok","type":"string"}},"required":["status","places"],"type":"object"},"Properties":{"description":"Properties of a place. Admin fields are absent when unknown.","properties":{"borough":{"description":"Borough, city district or suburb the place is in.","type":"string"},"category":{"description":"The place's category, for example `college` or `railway station`.","items":{"type":"string"},"type":"array"},"center":{"description":"The place's point, `[longitude, latitude]`, when its geometry is an\noutline (`/v1/place` with `geometry=true`).","example":[77.2295,28.6129],"items":{"format":"double","type":"number"},"type":"array"},"confidence":{"description":"Share of the query's words that the place contains, from 0 to 1.\nOnly on text searches.","format":"double","type":"number"},"country":{"description":"Country.","type":"string"},"country_code":{"description":"ISO 3166-1 alpha-2 country code.","example":"FR","type":"string"},"county":{"description":"County.","type":"string"},"distance":{"description":"Kilometres from the focus point or the reverse point.","format":"double","type":"number"},"gid":{"description":"Global id, `geolith:{layer}:{id}`.","example":"geolith:venue:123456789","type":"string"},"id":{"description":"Row id in the `geocoding` table.","example":"123456789","type":"string"},"importance":{"description":"How notable the place is, from 0 to 1.","format":"float","type":"number"},"label":{"description":"Name followed by neighbourhood (else borough), locality, region and\ncountry.","example":"Tour Eiffel, Paris, Île-de-France, France","type":"string"},"layer":{"description":"`venue` or `address`.","example":"venue","type":"string"},"locality":{"description":"City or town.","type":"string"},"name":{"description":"Name of the place, or house number and street for an address.","example":"Tour Eiffel","type":"string"},"neighbourhood":{"description":"Neighbourhood, quarter or suburb the place is in.","example":"Seawoods East","type":"string"},"postalcode":{"description":"Postal code.","type":"string"},"region":{"description":"State or province.","type":"string"},"source":{"description":"Always `geolith`.","example":"geolith","type":"string"},"street":{"description":"Street.","type":"string"}},"required":["id","gid","layer","source","name","importance","label"],"type":"object"},"QueryEcho":{"description":"The request as the server understood it. Which fields appear depends on\nthe endpoint.","properties":{"boundary.circle.radius":{"description":"Search radius in kilometres (`/v1/reverse`, `/v1/nearby`).","format":"double","type":"number"},"fields":{"description":"The address fields that were set (`/v1/search/structured`).","items":{"type":"string"},"type":"array"},"ids":{"description":"The gids asked for (`/v1/place`).","items":{"$ref":"#/components/schemas/AskedGid"},"type":"array"},"point.lat":{"description":"Latitude of the point (`/v1/reverse`, `/v1/nearby`).","format":"double","type":"number"},"point.lon":{"description":"Longitude of the point (`/v1/reverse`, `/v1/nearby`).","format":"double","type":"number"},"ranking":{"$ref":"#/components/schemas/Ranking","description":"How the results were ranked."},"size":{"description":"Number of results asked for.","minimum":0,"type":"integer"},"text":{"description":"The search text (`/v1/search`, `/v1/autocomplete`).","type":"string"}},"required":["size"],"type":"object"},"Ranking":{"description":"How a result list was ranked, reported in `geocoding.query.ranking`.","enum":["importance","importance+distance"],"type":"string"},"TileJson":{"type":"object","description":"TileJSON 3.0.0; the tile URL carries the key it was asked with.","required":["tilejson","tiles","minzoom","maxzoom","bounds","center"],"properties":{"tilejson":{"const":"3.0.0"},"name":{"type":"string"},"scheme":{"const":"xyz"},"tiles":{"type":"array","items":{"type":"string","format":"uri"}},"minzoom":{"type":"integer"},"maxzoom":{"type":"integer"},"bounds":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4},"center":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3},"vector_layers":{"type":"array","items":{"type":"object"}},"encoding":{"type":"string","enum":["terrarium","mapbox"]},"tileSize":{"type":"integer"},"attribution":{"type":"string"}}},"TileError":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["tile_error","not_found"]},"message":{"type":"string"}}}}},"ValhallaJson":{"type":"object","description":"A Valhalla request or answer (JSON)."},"RouterError":{"type":"object","description":"A Valhalla-shaped refusal of the router, passed through unchanged and not billed: `error_code` 1001 (a location outside every city), 1002 (locations in different cities), 1004 (the request needs more map data, memory or time than one request may use), or a per-city service limit (150, 151, 152, 153, 154, 166).","required":["error_code","error"],"properties":{"error_code":{"type":"integer"},"error":{"type":"string"}}}},"securitySchemes":{"apiKeyQuery":{"type":"apiKey","in":"query","name":"api_key"},"bearer":{"type":"http","scheme":"bearer","description":"Authorization: Bearer YOUR_API_KEY (gc_sk_… secret or gc_pk_… publishable), or an OAuth access token from console.geolith.app"}}}}