Geocoding
Search by feature ID
Search feature by its ID (id) as returned in forward or reverse geocoding response and return its full geometry. Note that the feature ID is not stable and it changes when the database is re-indexed.
get/geocoding/{id}.json
Request
- Base URLhttps://api.maptiler.com
- AuthAPI key in query parameter key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Search result represented as FeatureCollection where every item is represented as a GeoJSON Feature
Example response
{
"features": [
{
"id": "municipality.46425",
"text": "Paris",
"language": "en",
"properties": {
"ref": "osm:r71525",
"country_code": "fr",
"categories": [
"restaurant"
],
"place_designation": "city"
},
"geometry": {
"coordinates": [
8.528509,
47.3774434
]
},
"bbox": [
5.9559,
45.818,
10.4921,
47.8084
],
"center": [
8.528509,
47.3774434
],
"context": [
{
"ref": "osm:r71525",
"country_code": "fr",
"categories": [
"restaurant"
],
"place_designation": "city",
"id": "municipality.46425",
"text": "Paris",
"language": "en"
}
]
}
],
"attribution": "<a href=\"https://www.maptiler.com/copyright/\" target=\"_blank\">© MapTiler</a> <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">© OpenStreetMap contributors</a>"
}Changes
No recorded changes to this operation across all 1 revision of this API.