How to open Google Maps using address?

前端 未结 7 1036
野趣味
野趣味 2021-02-07 06:57

How can I open Google Maps(using Intents or adding Google Maps into my application) with address? I have the address, but I don\'t have latitude/longitude. How can I do it? Than

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-07 07:17

    As of 2017 the recommended by Google approach is using the Google Maps URLs API that provides universal cross-platform URLs. You can use these URLs in your intents.

    Example of such URL from the documentation:

    https://www.google.com/maps/search/?api=1&query=centurylink+field

    Hope this helps!

提交回复
热议问题