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?


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.

  • 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)? – Luis A. Florit Sep 14 '17 at 19:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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