AGENTUTIL
DocsTools Reference

Geocode Address

$0.005per call
geo.locate

Convert an address to geographic coordinates

Endpoint
POST /v1/tools/geo.locate/tasks

Input

FieldTypeRequiredDescription
addressstringyesAddress to geocode

Output

FieldTypeDescription
latnumber
lngnumber
confidencenumberConfidence score from 0 to 1
formatted_addressstringFull formatted address string
componentsobject

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"
  }
}