Geocodificacion Inversa
Convierte coordenadas geograficas en una direccion legible.
Cuerpo de la Solicitud
| Campo | Tipo | Requerido | Descripcion |
|---|---|---|---|
lat |
float | Si | Latitud (-90 a 90) |
lng |
float | Si | Longitud (-180 a 180) |
radius |
integer | No | Radio de busqueda en metros (maximo 10,000) |
language |
string | No | Codigo de idioma BCP47 (ej., en-US, es-CL) |
Ejemplo de Solicitud
curl -X POST https://geocoder.amigocloud.com/api/v1/{uuid}/reverse/ \
-H "X-API-Key: your-key" \
-H "Content-Type: application/json" \
-d '{
"lat": -33.4175,
"lng": -70.6065,
"language": "es-CL"
}'
Ejemplo de Respuesta
{
"results": [
{
"label": "Av. Andres Bello 2425, Providencia, Region Metropolitana, Chile",
"position": { "lat": -33.4175, "lng": -70.6065 },
"address": {
"house_number": "2425",
"street": "Av. Andres Bello",
"neighborhood": "Providencia",
"city": "Santiago",
"county": null,
"state": "Region Metropolitana",
"state_code": "RM",
"postal_code": null,
"country": "Chile",
"country_code": "CHL"
},
"result_type": "house_number",
"provider_id": "locationiq:node:987654321",
"relevance": null,
"distance": null,
"bounding_box": null
}
],
"provider": "locationiq",
"cached": false
}
Cache
Los resultados se almacenan en cache durante 5 minutos. Las respuestas en cache incluyen "cached": true.