Geocoding
Batch geocoding API
Perform geocoding of more than one request in a single API call. Check out the <a href="https://docs.maptiler.com/guides/geocoding/batch-geocoding-api/">Batch Geocoding guide</a> for an example.
get/geocoding/{queries}.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
Array of geocoding results where items are matching order of queries in the request. Every result is 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.