geocode.netgeocode.net
API reference › Reverse

Nearest address to a coordinate

GET/v1/reverse

GET/v1/reverse

Nearest address to a coordinate

Reverse geocoding. The nearest address points within about 300 m, else the nearest street, else the containing place.

PARAMETERS
latquery · numberREQUIRED
Latitude in decimal degrees
e.g. 38.8977
lngquery · numberREQUIRED
Longitude in decimal degrees
e.g. -77.0365
fieldsquery · string
Comma-separated appends: census, cd, stateleg, school, timezone, or all
limitquery · integer
How many candidates to return, nearest first
e.g. 1
In the full reference
REQUEST
curl "https://api.geocode.net/v1/reverse?lat=38.8977&lng=-77.0365" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200Successful Response
{
  "query": {
    "lat": 38.8977,
    "lng": -77.0365
  },
  "results": [
    {
      "formatted": "1600 Pennsylvania Ave NW, Washington, DC 20500",
      "components": {
        "number": "1600",
        "street": "Pennsylvania",
        "suffix": "Ave",
        "postdirectional": "NW",
        "city": "Washington",
        "county": "District of Columbia",
        "state": "DC",
        "zip": "20500",
        "country": "US"
      },
      "location": {
        "lat": 38.897675,
        "lng": -77.036545
      },
      "accuracy": 0.98,
      "accuracy_type": "rooftop",
      "source": "nad",
      "fields": {
        "distance_m": 4.8
      }
    }
  ]
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.