Current Location - Google Maps - Link to Directions

google-maps

Solution

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.

Problem

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 and the from address to inherit the user's current location. From what someone else had instructed, if I used 'current location' as the 'from address', it'd do everything for me. Instead, when I access the URL from a different location, it's still loading the original "current location" and not the actual current location. I'm sure it's something stupidly easy, but I'm hoping that someone could point me in the right direction. The link can be found here.

Original source