0

Is it possible to get the municipality at a given coordinate in Google maps api? I know there are maps with the municipal information, but how to get the municipal of a given point?

1 Answer 1

1

You can get information about administrative districts. You want the Geocoding API. The process you are suggesting is generally called 'reverse geocoding'. i.e. going from lat,long to place name.

Information about the response you get, including administrative area types, is available here. Scroll down to Address Types and Address Component Types.

Exactly how your local 'municipality' will line up with google's schema may take some trial and error.

1
  • Thanks!! This is what I was looking for. I guess it should be 'administrative_area_level_2'. Still: should I need to be online to use these, or a database can be downloaded (say, by country)? Commented Sep 14, 2017 at 19:35

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.