Current Location - Google Maps - Link to Directions

后端 未结 8 687
长情又很酷
长情又很酷 2020-12-12 16:12

I\'m trying to do what seemed to be an easy thing but has resulted in some confusion. I\'m trying to have a link going to Google Maps with the destination address pre-filled

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-12 17:08

    Use My Location instead:

    https://maps.google.com/?saddr=My%20Location&daddr=myDestinationAddress
    

    Current Location only works on OS'es with English locale setup.

    I haven't found any documentation on this. However leaving saddr blank as suggested here https://developers.google.com/maps/documentation/ios-sdk/urlscheme will prompt the user to input start address.

提交回复
热议问题