How to open Google Maps using address?

前端 未结 7 1042
野趣味
野趣味 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:13

    You can use Google Geocoding API, which converts your physical address into latitude and longitude. API returns it into XML or JSON format. You just need to parse the data to get latitude and longitude. After receiving latitude and longitude you can load it on mapview.

    Geocoding api link :

    https://developers.google.com/maps/documentation/geocoding/

    Hope this helps.

提交回复
热议问题