Identifiers
Convert a US address to latitude and longitude
Geocode a street address with the US Census Bureau Geocoder: latitude and longitude, the address as matched, and the county, census tract and districts it falls in.
The register is slow to answer. Still checking…
- Matched address
- 1600 PENNSYLVANIA AVE NW, WASHINGTON, DC, 20500
- Coordinates
- 38.898703, -77.035189
- Census tract
- Census Tract 9800 (11001980000)
- Block group
- 110019800001
- Census block
- 110019800001034
- County
- District of Columbia (11001)
- State
- District of Columbia (DC, FIPS 11)
- Place
- Washington city (1150000)
- County subdivision
- Washington city (1100150000)
- Congressional district
- Delegate District (at Large), 120th Congress
- State senate district
- Ward 2 (11002)
- State house district
- Not available
- Metro area
- Washington-Arlington-Alexandria, DC-VA-MD-WV Metro Area (47900)
- ZCTA
- 20006
- School district
- District of Columbia Public Schools (1100030)
- API access
- Unlock with a free account
How to read the result
| Row | What it tells you |
|---|---|
| Matched address | The address as the Census Geocoder understood it. Compare it with what you typed before using the point |
| Coordinates | Latitude and longitude in decimal degrees, to 6 decimals, linked to the point on OpenStreetMap |
| Census tract, Block group, Census block | The census areas the point falls in, with their GEOIDs |
| County, State | The county and state, with their FIPS codes |
| Place, County subdivision | The city or town and the township or county division |
| Congressional district | The district and the Congress it is drawn for |
| State senate district, State house district | The districts of the state legislature |
| Metro area, ZCTA, School district | The statistical area, ZIP Code Tabulation Area and school district |
Check the matched address first. When it differs from the address you meant, such as another city or a street with a similar name, the coordinates belong to that other address.
How the point is computed
- The address goes to the Census Geocoder of the US Census Bureau, which finds the TIGER/Line street segment whose address range holds the house number.
- The point is interpolated along that segment, in proportion to where the number falls in the range, and set on the side of the street of that number. This is why two neighbors get points a few steps apart on the street rather than on their houses.
- Only the first match is kept, and the geographies that contain the point are returned with it.
A coordinate pair rounded to 6 decimals places a point to about a tenth of a meter, finer than the interpolation itself: treat the point as street-level, not building-level.
Geocode addresses from your code
The census tract lookup API returns the coordinates at full precision, with every geography and GEOID, for 1 credit when the address matches, cached 30 days. Addresses that do not match are free. See the API reference, or geocode a whole column of addresses in a bulk job, which writes result_latitude and result_longitude next to each row.
Related tools: census tract finder to read the tract, block and GEOIDs in detail, and IP lookup to locate a visitor by IP address instead.
Same check through the API
One HTTPS call, one credit. The response below is the real schema returned by the API.
curl https://api.qelka.com/v1/census/tract \
-H "Authorization: Bearer sk_test_your_key" \
-H "Content-Type: application/json" \
-d '{"address":"1600 Pennsylvania Ave NW, Washington, DC 20500"}'const response = await fetch("https://api.qelka.com/v1/census/tract", {
method: "POST",
headers: {
Authorization: "Bearer sk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
address: "1600 Pennsylvania Ave NW, Washington, DC 20500",
}),
});
const result = await response.json();{
"id": "lkp_01M8CEFKXRYJS1HJSEGWVBDAVK",
"object": "census_tract",
"input": "1600 Pennsylvania Ave NW, Washington, DC 20500",
"status": "matched",
"matched_address": "1600 PENNSYLVANIA AVE NW, WASHINGTON, DC, 20500",
"coordinates": {
"latitude": 38.898702605245,
"longitude": -77.035189204737
},
"tiger_line": {
"id": "76225813",
"side": "L"
},
"state": {
"fips": "11",
"code": "DC",
"name": "District of Columbia"
},
"county": {
"geoid": "11001",
"name": "District of Columbia"
},
"county_subdivision": {
"geoid": "1100150000",
"name": "Washington city"
},
"place": {
"geoid": "1150000",
"name": "Washington city"
},
"tract": {
"geoid": "11001980000",
"code": "980000",
"name": "Census Tract 9800"
},
"block_group": {
"geoid": "110019800001",
"code": "1"
},
"block": {
"geoid": "110019800001034",
"code": "1034"
},
"congressional_district": {
"geoid": "1198",
"code": "98",
"name": "Delegate District (at Large)",
"congress": 120
},
"state_legislative_upper": {
"geoid": "11002",
"name": "Ward 2"
},
"state_legislative_lower": null,
"metro_area": {
"geoid": "47900",
"name": "Washington-Arlington-Alexandria, DC-VA-MD-WV Metro Area"
},
"zcta": "20006",
"school_district": {
"geoid": "1100030",
"name": "District of Columbia Public Schools"
},
"credits_used": 1,
"cached": false
}Frequently asked questions
How precise are the coordinates?
Does it work outside the United States?
How should I write the address?
In which order are latitude and longitude given?
Can I turn coordinates back into an address?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time