Hi all,
I have a problem, I need to automatically get the user latitude and longitude, on page load (no user interaction), is there a way?
In my PHP script, I want to populate automatically $lat and $long, everything on page load, so no user intereaction, but I do not know how:
<a href="http://maps.google.com/maps?f=d&hl=EN®ion=EN&doflg=ptk&saddr='.$lat.','.$long.'&daddr=40.7033127,-73.979681&ie=UTF8&z=12" target="_blank">Get me there</a>
So when an user visit that page the system automatically get/ask to geolocalize and put latitude an longitude in the <a href>.
Any help is appreciated!