Geocode
geocodeConvert a US street address or city/town name into latitude/longitude coordinates using US Census data. Use it before weather or elevation tools when you need coordinates for a text location.
Instructions
Convert a US street address OR a city/town name into latitude/longitude coordinates, using US Census data. Accepts both '1600 Pennsylvania Ave NW, Washington DC' and 'Chicago, IL' - a place name returns the centroid of the city. Call this first whenever you have a location as text and need coordinates for the weather or elevation tools. US locations only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | A US street address ('1600 Pennsylvania Ave NW, Washington DC') or a city or town ('Chicago, IL', 'Springdale, Arkansas') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| source | No | ||
| matches | No | ||
| matched_by | No | ||
| provenance | No | Where this answer came from. served_at is when Datakoot answered (UTC); upstream lists the official sources consulted. Datakoot may serve a briefly cached copy, so the source's own observation can be older than served_at. |