Geocoding Address
2 endpoints · Core API
What is Geocoding Address?
Reverse Geocoding API provides a seamless way to convert geographical coordinates into detailed physical addresses. By simply inputting latitude and longitude, this intuitive API returns a comprehensive address that includes the city, state, country, and zip code accurately mapped to the specified coordinates. Users can easily make a cURL request to retrieve the address, accompanied by a confidence score that reflects the accuracy of the geocoding result. This API serves as a reliable bridge between coordinate data and real-world locations, offering precise and efficient address retrieval.
What you can do
Accurate Address Conversion: Effortlessly transforms latitude and longitude coordinates into precise physical addresses.
Enhanced Data Insights: Provides detailed location data, including city, state, country, and zip code, for better context and decision-making.
Confidence Scoring: Offers a confidence score with each result, ensuring users understand the accuracy of the data.
Easy Integration: Simplifies implementation with straightforward cURL requests, making it user-friendly for developers.
Get Address details
Headers
- X-API-KEYstringrequiredYour secret API key for the environment you are calling (Stage and Live use different keys).
- X-API-APP-IDstringrequiredThe App ID issued together with the key.
- Content-Typestringrequiredapplication/json
Body parameters
application/json- consentstringrequiredRequired. The end user's consent to this verification. Send `Y`.minLength 1default Y
- consent_textstringrequiredRequired. The consent statement shown to the end user. Send the default text from the sample.minLength 1default I hear by declare my consent agreeme…
- request_idstringoptionalOptional. Your own id to correlate this call in your logs. A unique id is generated if you leave it out.nullable
- addressstringrequiredRequired. Free-text address to convert into coordinates (for example a street, city and PIN code). An empty value fails the request.nullabledefault Connaught Place, New Delhi, 110001
Sample request body
Responses
200OK
- successbooleanoptionalNo description.
- statusCodeinteger (int32)optionalNo description.default 200
- messagestringoptionalNo description.nullabledefault XXXXX
- dataobjectoptionalResponse model containing forward geocoding results.
1 field
- resultsarray<object>optionalArray of geocoding results matching the address query.nullable
Each item: 3 fields
- geometryobjectoptionalGeometry details containing the geographic location coordinates.
1 field
- locationobjectoptionalGeographic coordinates with latitude and longitude values.
2 fields
- latnumber (double)optionalLatitude coordinate of the location.
- lngnumber (double)optionalLongitude coordinate of the location.
- formatted_addressstringoptionalHuman-readable formatted address string.nullable
- googleMapUrlstringoptionalGoogle Maps URL for the geocoded location.nullable
- messagesarray<string>optionalNo description.nullable
- request_idstringoptionalNo description.nullable
- isBillablebooleanoptionalWhether this request was charged: true if it was, false if not. Errors always show false. Flows that finish later (ITR Fetch, SHCIL eStamp, DigiLocker, eSign) show false here, because the charge is made when the result is ready. eSign charges each signer when they complete signing. DigiLocker deducts the credit when the link is created and refunds it automatically if the link expires before the user completes it.
400Bad Request
- dataobjectoptionalNo description.
- messagesarray<string>optionalNo description.nullable
- request_idstringoptionalNo description.nullable
- successbooleanoptionalNo description.default false
- messagestringoptionalNo description.nullabledefault XXXXX
- isBillablebooleanoptionalNo description.
- statusCodeinteger (int32)optionalNo description.default 400
401Unauthorized
- dataobjectoptionalNo description.
- messagesarray<string>optionalNo description.nullable
- request_idstringoptionalNo description.nullable
- successbooleanoptionalNo description.default false
- messagestringoptionalNo description.nullabledefault XXXXX
- isBillablebooleanoptionalNo description.
- statusCodeinteger (int32)optionalNo description.default 401
500Internal Server Error
- dataobjectoptionalNo description.
- messagesarray<string>optionalNo description.nullable
- request_idstringoptionalNo description.nullable
- successbooleanoptionalNo description.default false
- messagestringoptionalNo description.nullabledefault XXXXX
- isBillablebooleanoptionalNo description.
- statusCodeinteger (int32)optionalNo description.default 500
Code samplescurl · Node.js · Python
Get Address details
Headers
- X-API-KEYstringrequiredYour secret API key for the environment you are calling (Stage and Live use different keys).
- X-API-APP-IDstringrequiredThe App ID issued together with the key.
- Content-Typestringrequiredapplication/json
Body parameters
application/json- consentstringrequiredRequired. The end user's consent to this verification. Send `Y`.minLength 1default Y
- consent_textstringrequiredRequired. The consent statement shown to the end user. Send the default text from the sample.minLength 1default I hear by declare my consent agreeme…
- request_idstringoptionalOptional. Your own id to correlate this call in your logs. A unique id is generated if you leave it out.nullable
- latitudenumber (double)requiredRequired. Latitude in decimal degrees, from -90 to 90 (for example 28.6315). Must be sent together with longitude; if either is missing the request fails. Values are used to six decimal places.nullablemin -90max 90default 28.6315
- longitudenumber (double)requiredRequired. Longitude in decimal degrees, from -180 to 180 (for example 77.2167). Must be sent together with latitude; if either is missing the request fails. Values are used to six decimal places.nullablemin -180max 180default 77.2167
Sample request body
Responses
200OK
- successbooleanoptionalNo description.
- statusCodeinteger (int32)optionalNo description.default 200
- messagestringoptionalNo description.nullabledefault XXXXX
- dataobjectoptionalStandardized location response with address, coordinates, and confidence score.
11 fields
- addressstringoptionalFull address string of the location.nullable
- latitudestringoptionalLatitude coordinate of the location.nullable
- longitudestringoptionalLongitude coordinate of the location.nullable
- confidenceScorenumber (double)optionalConfidence score indicating the accuracy of the geocoding result.
- citystringoptionalCity name of the location.nullable
- statestringoptionalState name of the location.nullable
- stateCodestringoptionalState code abbreviation.nullable
- countrystringoptionalCountry name of the location.nullable
- countryCodestringoptionalCountry code abbreviation (e.g., IN, US).nullable
- zipcodestringoptionalZIP or postal code of the location.nullable
- googleMapUrlstringoptionalGoogle Maps URL for the location.nullable
- messagesarray<string>optionalNo description.nullable
- request_idstringoptionalNo description.nullable
- isBillablebooleanoptionalWhether this request was charged: true if it was, false if not. Errors always show false. Flows that finish later (ITR Fetch, SHCIL eStamp, DigiLocker, eSign) show false here, because the charge is made when the result is ready. eSign charges each signer when they complete signing. DigiLocker deducts the credit when the link is created and refunds it automatically if the link expires before the user completes it.
400Bad Request
- dataobjectoptionalNo description.
- messagesarray<string>optionalNo description.nullable
- request_idstringoptionalNo description.nullable
- successbooleanoptionalNo description.default false
- messagestringoptionalNo description.nullabledefault XXXXX
- isBillablebooleanoptionalNo description.
- statusCodeinteger (int32)optionalNo description.default 400
401Unauthorized
- dataobjectoptionalNo description.
- messagesarray<string>optionalNo description.nullable
- request_idstringoptionalNo description.nullable
- successbooleanoptionalNo description.default false
- messagestringoptionalNo description.nullabledefault XXXXX
- isBillablebooleanoptionalNo description.
- statusCodeinteger (int32)optionalNo description.default 401
500Internal Server Error
- dataobjectoptionalNo description.
- messagesarray<string>optionalNo description.nullable
- request_idstringoptionalNo description.nullable
- successbooleanoptionalNo description.default false
- messagestringoptionalNo description.nullabledefault XXXXX
- isBillablebooleanoptionalNo description.
- statusCodeinteger (int32)optionalNo description.default 500