Reverse geocode type

{
    "address": "White House, 1600, Pennsylvania Avenue Northwest, Golden Triangle, Washington, District of Columbia, 20500, United States of America",
    "latitude": 38.8976989,
    "longitude": -77.036553292281,
    "house_number": "1600",
    "street": "Pennsylvania Avenue Northwest",
    "street_name": "Pennsylvania",
    "street_type": "Avenue",
    "city": "Washington",
    "state": "District of Columbia",
    "state_code": "DC",
    "postal_code": "20500",
    "precision": "street_segment",
    "provider": "OpenStreetMap",
    "ntk_geocode_time": 65
}

Attributes

addressstring
citystring
house_numberstring
latitudenumber
longitudenumber
ntk_geocode_timenumber 
postal_codestring
precisionstring
providerstring
statestring
state_codestring
streetstring
street_namestring
street_typestring

Reverse geocode

GET/geo/reverse-geocodes

Parameters

latitudenumber(required)

The latitude that the user want to reverse geocode.

longitudenumber(required)

The longitude that the user want to reverse geocode.

language_codestring(optional)

The language of the output; applicable only if OpenStreetMap is used.

Example

Request

curl "https://api.nettoolkit.com/v1/geo/reverse-geocodes?latitude=38.897401&longitude=-77.036562" \
-H "X-NTK-KEY: $YOUR_KEY_HERE"

Response

{
    "code": 1000,
    "http_status_code": 200,
    "query": {
        "coordinates": "38.897401, -77.036562"
    },
    "results": [
        {
            "address": "White House, 1600, Pennsylvania Avenue Northwest, Golden Triangle, Washington, District of Columbia, 20500, United States of America",
            "latitude": 38.8976989,
            "longitude": -77.036553292281,
            "house_number": "1600",
            "street": "Pennsylvania Avenue Northwest",
            "street_name": "Pennsylvania",
            "street_type": "Avenue",
            "city": "Washington",
            "state": "District of Columbia",
            "state_code": "DC",
            "postal_code": "20500",
            "precision": "street_segment",
            "provider": "OpenStreetMap",
            "ntk_geocode_time": 65
        }
    ]
}