Open Maps app from Code - Where/How to find the “Current Location”?

后端 未结 4 1448
故里飘歌
故里飘歌 2020-12-15 01:18

I am opening Maps app to show directions from user\'s Current Location to a destination coordinate, from my code. I am using the following code to open the Maps app. I am ca

4条回答
  •  遥遥无期
    2020-12-15 02:19

    Using "Current Location" as saddr only works if the user has the system language set to English. The best options is really to get the current position from Core Location and use that as saddr.

提交回复
热议问题