Geocode Address
$0.005per callgeo.locateConvert an address to geographic coordinates
Endpoint
POST /v1/tools/geo.locate/tasksInput
| Field | Type | Required | Description |
|---|---|---|---|
| address | string | yes | Address to geocode |
Output
| Field | Type | Description |
|---|---|---|
| lat | number | |
| lng | number | |
| confidence | number | Confidence score from 0 to 1 |
| formatted_address | string | Full formatted address string |
| components | object |
Example
Request
{
"address": "1600 Amphitheatre Parkway, Mountain View, CA"
}Response
{
"lat": 37.4224,
"lng": -122.0856,
"confidence": 0.95,
"formatted_address": "1600 Amphitheatre Parkway, Mountain View, CA 94043, USA",
"components": {
"house_number": "1600",
"street": "Amphitheatre Parkway",
"city": "Mountain View",
"state": "California",
"country": "United States",
"postal_code": "94043"
}
}