我想点击我的iOS (11.3)应用程序中的一个按钮,它可以打开特定位置的谷歌地图。
我有两个id和place_id,但我不知道如何使用它们。
下面是我构建的链接,但是它没有打开。
world.location = "comgooglemaps://?q=place_id:\(place.1["place_id"].stringValue)¢er=" + latlong;GoogleMaps会启动,但是它会对我的place_id做出“没有结果”的响应。另外,place_id:在应用程序的搜索栏中是可见的。
这就是我试图打开链接的方式
@IBAction func search(_ sender: UIButton) {
   UIApplication.shared.open(URL(string : world.location)!)
}发布于 2018-06-06 13:27:22
嗨,安藤,通过下面的链接。我想你会知道答案的,你的网址是不对的。URL - How do i open Google Maps for directions using coordinates on the iphone
https://stackoverflow.com/questions/50718645
复制相似问题