Reverse Search API

Reverse Search API

In Reverse Search API,  we provide the reverse geocoding APIs to convert coordinates to human-readable addresses.

How does it work?

The Reverse Search API works in reverse: it converts coordinates to human-readable addresses.

For example, the latitude/longitude value for a location in Brooklyn: “40.714224,-73.961452” can be converted to an address “277 Bedford Avenue, Brooklyn, NY 11211, USA” using this API.

 

Parameters Required

Name Type Description
fm_token String Enter Mappr token available in Mappr dashboard
lat string Enter the latitude of the desired location
lng string Enter the longitude of the desired location
zoom number Enter the number to the desired extent you want to zoom in. [0-20]
Zoom Levels
Zoom Levels Description
zoom level 3 refers to Country
zoom level 5 refers to State
zoom level 6 refers to Region
zoom level 10 refers to City
zoom level 12 refers to Town/Village
zoom level 14 refers to Suburb
zoom level 18 refers to Building

 

Request

To use the Reverse Geocoding API, perform a GET request on the following:

 endpoints:https://maps.flightmap.io/api/search_reverse?fm_token=<your api key here>&lat=30.6944792&lng=76.8796062&zoom=18

 

Response

Name Type Description
data Object Complete address of the place
address string Address of the place
formatted_address string Formatted address of the place

The Reverse Search API returns the following result in a JSON format.

{
      "message": "Successful",
      "status": 200,
      "data": {
        "address": "Panchkula, Haryana",
        "formatted_address": "Unnamed Road, Panchkula, Haryana 134109, India"
      }
    }

Link to API documentation: https://docs.jungleworks.com/flightmap/map/reverse-geocoding-api

Leave A Comment?