apple-maps - Apple Map 中的多个航点

标签 apple-maps

有没有办法以编程方式显示苹果 map 中多个点之间的路线,如谷歌地图?

multiple waypoints in google Map

最佳答案

正如 MKMapItem 文档所述:

If you specify the MKLaunchOptionsDirectionsModeKey option in the launchOptions dictionary, the mapItems array must have no more than two items in it. If the array contains one item, the Maps app generates directions from the user’s current location to the location specified by the map item. If the array contains two items, the Maps app generates directions from the location of the first item to the location of the second item in the array.



所以答案是否定的。

关于apple-maps - Apple Map 中的多个航点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27858667/

相关文章:

google-maps - Apple Maps 和 Google Maps API 的参数相同吗?

ios - 模拟器上的苹果 map

ios - 如何从数组中获取值并将其存储为坐标

ios - map 缩放时,图钉上的弹出框不会移动

google-maps - 通过传递经纬度打开苹果 map

ios - 在 Swift 中反向搜索电话号码?

google-maps - Xamarin.Forms map 图钉

ios - 释放放大后 map 会缩小

ios - 使用 Apple Maps 确定用户是否在多边形区域之外

ios - 手势识别器 : placing pin on Map results in SIGABRT