调用 Apple Watch 地图应用程序进行转弯指示

invoke Apple Watch maps app for turn by turn directions

我正在开发一个手表应用程序,除其他外,它需要将一个人从 A 点带到 B 点。

一个选项是将地图导航工作委托回 iPhone 并处理手表与 phone 等之间的消息更新。

但是有人知道是否可以直接从我自己的手表应用程序 invoke/launch Apple Maps 应用程序(在手表上)并传递 start/end 坐标详细信息——以自动启动转弯按转向指示(来自 Apple 地图手表应用程序)?

第二个选项听起来不错。根据 WKInterfaceMap class 参考,点击地图将直接打开 Apple Watch 地图应用程序。

引用文档:

A WKInterfaceMap object displays a noninteractive map for the location you specify. Maps must be configured dynamically from your interface controller. Use the methods of the WKInterfaceMap class to specify the visible region of the map and to add any annotations or points of interest. Tapping the map launches the Maps app on the user’s Apple Watch and displays the corresponding location.

参考:https://developer.apple.com/library/prerelease/ios/documentation/WatchKit/Reference/WKInterfaceMap_class/index.html