How to invoke iPhone Maps for Directions with Current Location as Start Address

后端 未结 16 1686
一整个雨季
一整个雨季 2020-12-02 03:53

I know it\'s possible to start the iPhone maps application by calling openURL on a google maps URL with parameters saddr and daddr wit

16条回答
  •  孤城傲影
    2020-12-02 04:35

    Because of sandboxing, you don't have access to the Map application's bookmarks.

    Instead, use Core Location to determine the current location yourself. Then use that location (the lat and long) in the URL you build to open Maps.

提交回复
热议问题