Reverse Geocoding API

Introduction

Returns the nearest address to geo coordinates specified in the request.

Request Parameters

Loading..

Response Schema

Loading..

Examples

Let's reverse geocode an address in Las Vegas city using its coordinates.

Sample API Request

curl --location 'https://api.nextbillion.io/revgeocode?at=36.164760,-115.147690&key=<your_api_key>'

Sample API Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
   "items": [
       {
           "title": "255 East Bonneville Avenue, Las Vegas, NV 89101, United States",
           "id": "orUEyi4DUtelbGzeFXvTeA",
           "speedLimit": "30.00MPH",
           "address": {
               "label": "255 East Bonneville Avenue, Las Vegas, NV 89101, United States",
               "countryCode": "USA",
               "countryName": "United States",
               "stateCode": "NV",
               "state": "Nevada",
               "county": "Clark",
               "city": "Las Vegas",
               "street": "East Bonneville Avenue",
               "postalCode": "89101",
               "houseNumber": "255"
           },
           "position": {
               "lat": 36.164551,
               "lng": -115.147057
           },
           "access": [
               {
                   "lat": 36.164551,
                   "lng": -115.147057
               }
           ],
           "distance": 61,
           "mapView": {
               "west": -115.147807,
               "south": 36.164413,
               "east": -115.146727,
               "north": 36.164873
           }
       }
   ]
}

API Query Limits

Nextbillion.ai allows a maximum rate limit of 2400 queries per minute or 40 queries/second for continuous requests.

API Error Codes

Response CodeDescriptionAdditional Notes
200Normal success case.

Normal success case

400Input validation failed.

There is a missing or an invalid parameter or a parameter with an invalid value type is added to the request.

401APIKEY not supplied or invalid.

This error occurs when the wrong API key is passed in the request or the key is missing altogether

403APIKEY is valid but does not have access to requested resources.

You might be querying for a geographical region which is not valid for your account, or requesting a service which is not enabled for you.

404Requested host/path not found.

This error occurs when a malformed hostname is used.

422Could not process the request.

Valid results could not be generated for the given parameters. Please modify the constraints/search query.

429Too many requests.

QPM or API request count quota reached

500Internal Service error.

There was an internal issue with NextBillion.ai services. You can reach out to [email protected] for an explanation.