Current Location - Google Maps - Link to Directions

后端 未结 8 711
长情又很酷
长情又很酷 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 16:57

    What you expect to be the users location is not what you expect, "current location" will be taken by google as any other address, and google tries to find a place that matches the query.

    When somebody told you that "current location" will force google to resolve the location of the user, this is wrong.

    You may geolocate the user on your own and then create the link based on the geolocation-result.

提交回复
热议问题