Saltar al contenido principal

Reverse Geocoding

This API translate a location on the map into a human-readable address:

Usage

FieldDescription
latitudeInteger representation of latitude
longitudeInteger representation of longitude

Example request:

curl --location '{IDENTITY_API_BASE_URL}/reverse-geocoding' \
--header 'x-api-key: {IDENTITY_API_APIKEY}' \
--header 'Content-Type: application/json' \
--data '{
"latitude": -70.961452,
"longitude": 100.714224
}'

Example response:

200 OK

{
"results": [
{
"address_components": [
{
"long_name": "Antarctica",
"short_name": "AQ",
"types": [
"country",
"political",
"Admin-0 country",
"Indeterminate"
]
}
],
"formatted_address": "Antarctica",
"geocoding": {
"distance": null,
"type": "Exact"
},
"types": [
"country",
"political"
]
}
]
}