Skip to main content

Geotools API Reference

Geocoding#

The Geocoding API takes an address as an input, and returns a set of objects which pinpoint a Latitude/Longitude of all the matches of the given address.

Send a POST request to https://console.datasutram.com/apis/geocode. The request body has only one address parameter.

{
"address": "Park Street, Kolkata"
}

Response:

[
{
"City": "kolkata",
"District": "kolkata",
"Pincode": "700016",
"State": "west bengal",
"address": "Kolkata, West Bengal",
"geometry": {
"coordinates": [
22.5541424,
88.3513541
],
"type": "point"
},
"match": 67.94258373205741,
"name": "Park St",
"rating": 4.5,
"votes": 591
}
]

Reverse Geocoding#

The Reverse Geocoding API takes a Latitude and Longitude as an input and returns an object containing the State, District, City, Pincode mapping along with the address string.

Send a POST request to https://console.datasutram.com/apis/reverse-geocode. The request body has two parameters, latitude and longitude.

{
"latitude": 22.5541424,
"longitude": 88.3513541
}

Response:

{
"City": "kolkata",
"District": "kolkata",
"Pincode": "700016",
"State": "west bengal",
"address": "Park Street area, Kolkata, West Bengal 700001",
"geometry": {
"coordinates": [
22.5541424,
88.3513541
],
"type": "point"
},
"latitude": 22.5541424,
"longitude": 88.3513541,
"name": "Acb Street"
}