Use this API to convert a physical address into geographic coordinates (latitude and longitude). This helps verify location accuracy, enable map integrations, calculate distances, and support location-based services.
View the test data and use the information to trigger the validations. The test data can be used only in the sandbox environment.
Your unique client identifier issued by Cashfree. You can find this in your Merchant Dashboard.
The secret key associated with your client ID. Use this to authenticate your API requests. You can find this in your Merchant Dashboard.
API version to be used. Format is in YYYY-MM-DD.
"2024-12-01"
Find the request parameters to Access Token Generation.
It displays the unique ID you created to identify the verification request.
"test_verification_id"
The full address for which coordinates are needed.
"123 ABC Apartment,Bangalore Karnataka - 560034"
It is the country code used for more accurate latitude and longitude results.
"IN"
Latitude to calculate distance from.
"12.9274477"
Longitude to calculate distance from.
"77.6326542"
Response for geocoding API.
It displays the unique ID created by Cashfree Payments for reference purposes.
format: int64
123456
It displays the unique ID you created to identify the verification request.
"testVerificationId"
The complete address, including location details, which was provided in the request.
"123 Main Street, Koramangala, Bangalore"
It displays the status of the address provided (VALID/INVALID).
"VALID"
The latitude value provided in request.
"37.7749"
The longitude value provided in request.
"-122.4194"
The actual latitude coordinate of the address from the source.
"37.7749"
The actual longitude coordinate of the address from the source.
"-122.4194"
The country code of the address.
"IN"
The city name of the address.
"Bangalore"
The state name of the address.
"Karnataka"
The state code of the address.
"KA"
The country name of the address.
"India"
The country code of the address.
"IN"
Pincode or ZIP code of the address.
"560034"
Distance in kilometers from the latitude and longitude provided in the input request body to actual location.
"0.5"