I have longitude and latitude data. I need to reverse geocode to get city, state, country data separately.

I have checked google service.

Google provides complete address to a micro level. Separation into city, state, country seems not possible.

Any suggestions?

1 Answer 1


Looks like the Google reverse geocoding API will break it down for you, take a look at this result:


If you switch out xml with json, you can get json instead. Another option could be the Nominatim service, which also returns either xml or json.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.