Guide
Locations
Lookup endpoints take one location. Send a street address, or send latitude and longitude. Do not send a city name and expect a tract.
Address
address=1600 Pennsylvania Avenue NW, Washington, DC
Geocoded to a point. The response includes the matched address.
Coordinates
lat=38.8977&lng=-77.0365
Both values are required. They have to be numbers.
Suggest, then look up
Address suggest searches local TIGER data for streets, cities, counties, and ZIPs. A house number and the start of a street name are enough. A state, ZIP, city, or lat/lng pair narrows street matches and turns on typo correction. Each result has a query string. Pass that string as address on address lookup.
Address lookup returns the matched address, coordinates, ZIP, city, and state. approximate is true when the point is a ZIP, city, or county centroid. No match is a 404. A database failure is a 5xx.
When it fails
- 400 — the address could not be geocoded, or lat and lng were missing or not numbers. The
addressfield on a geocode failure says why. - 404 — the point resolved, but no state geography is loaded for it. Coordinates outside the US land here.