Geocoding Api Documentation
To improve success of results, please specify an address conforming to the following format: [street], [city] [postal code] [country]
address required | string Default: "<string>" |
success | string |
object |
{- "address": "Via Cristoforo Colombo, Roma RM"
}
{- "success": "true",
- "elements": {
- "id": "v442c6653ee93a5733e8a9ea2f842cd5c250d2b6ab",
- "element": {
- "providedBy": "google_maps | openstreetmap",
- "latitude": 41.808916,
- "longitude": 12.4535602,
- "bounds": {
- "south": 41.7691104,
- "west": 12.3831487,
- "north": 41.8731993,
- "east": 12.4985637
}, - "streetNumber": "null",
- "streetName": "Via Cristoforo Colombo",
- "postalCode": "04019",
- "locality": "Roma",
- "subLocality": "null",
- "adminLevels": {
- "1": {
- "name": "Lazio",
- "code": "Lazio",
- "level": 1
}, - "2": {
- "name": "Citta Metropolitana di Roma",
- "code": "RM",
- "level": 2
}, - "3": {
- "name": "Roma",
- "code": "Roma",
- "level": 3
}
}, - "country": "Italy",
- "countryCode": "IT",
- "timezone": "null"
}
}
}
Get place information from ID or latitude/longitude:
{"type": "id", "id": "<id>"}
{"type": "coordinates", "lat": "<lat>", "long": "<long>"}
id | string Default: "<string>" |
type required | string Default: "<string>" |
lat | number <float> Default: "<float>" |
long | number <float> Default: "<float>" |
success | string |
object |
{- "id": "v442c6653ee93a5733e8a9ea2f842cd5c250d2b6ab",
- "type": "id | coordinates",
- "lat": 41.289294,
- "long": 13.2349029
}
{- "success": "true",
- "elements": {
- "id": "v442c6653ee93a5733e8a9ea2f842cd5c250d2b6ab",
- "element": {
- "providedBy": "google_maps | openstreetmap",
- "latitude": 41.808916,
- "longitude": 12.4535602,
- "bounds": {
- "south": 41.7691104,
- "west": 12.3831487,
- "north": 41.8731993,
- "east": 12.4985637
}, - "streetNumber": "null",
- "streetName": "Via Cristoforo Colombo",
- "postalCode": "04019",
- "locality": "Roma",
- "subLocality": "null",
- "adminLevels": {
- "1": {
- "name": "Lazio",
- "code": "Lazio",
- "level": 1
}, - "2": {
- "name": "Citta Metropolitana di Roma",
- "code": "RM",
- "level": 2
}, - "3": {
- "name": "Roma",
- "code": "Roma",
- "level": 3
}
}, - "country": "Italy",
- "countryCode": "IT",
- "timezone": "null"
}
}
}