【发布时间】:2020-10-07 08:51:50
【问题描述】:
我正在指定一条由 iOS 上的 Google 地图应用打开的路线。我指定的网址格式为:
"comgooglemaps://?daddr=\(destination.lat),\(destination.lng)&saddr=\(myLocation.coordinate.latitude),\(myLocation.coordinate.longitude)&directionsmode=driving&waypoints=\(wp1.lat),\(wp1.lng)"
无论如何,路线永远不会包括我指定的航点。 iOS可能不支持这种表示法吗?如果有,正确的是什么?
谢谢
【问题讨论】:
-
Maps URL scheme for iOS 中似乎不支持航点,但您可以尝试在显示支持航点的方向时使用Maps URLs universal cross-platform syntax。
标签: ios google-maps