How do I link to Google Maps with a particular longitude and latitude?

前端 未结 15 2327
夕颜
夕颜 2020-12-02 04:49

I have a small application that gives the current location: longitude and latitude. Now I have to browse to google maps with the longitude and latitude. Please suggest how I

15条回答
  •  遥遥无期
    2020-12-02 05:24

    Open google map and show URL schemes location and location pin

    UIApplication.shared.openURL(URL(string:"https://maps.google.com/?q=\(dicLocation.stringValueForKey("latitude")),\(dicLocation.stringValueForKey("longitude")),15z")!)
    

提交回复
热议问题