Reverse Geocode API

Introduction

NextBillion.ai Reverse Geocode API returns the detailed address information of a given location coordinate.

Request Parameters

Loading..

Response Schema

Loading..

Examples

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

Sample API Request

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

Sample API Response

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

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
200

Normal success case.

Normal success case

400

Input validation failed.

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

401

APIKEY not supplied or invalid.

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

403

APIKEY 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.

404

Requested host/path not found.

This error occurs when a malformed hostname is used.

422

Could not process the request.

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

429

Too many requests.

QPM or API request count quota reached

500

Internal Service error.

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

© 2024 NextBillion.ai all rights reserved.