You need to sign in to do that
Don't have an account?
Ajith Anand2
How to determine the current location of a user
Hi, Kindly help me with the below mentioned requirement.
In an object's detail page, there is a custom button, which on being clicked, should update the record with the geolocation (latitude and longitude) of the user.
Please suggest.
Thanks.
In an object's detail page, there is a custom button, which on being clicked, should update the record with the geolocation (latitude and longitude) of the user.
Please suggest.
Thanks.
https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/Using_geolocation
This allows you to capture the lat/long, and you can then update the record using the techniques in this blog (not mine) :
http://hometeamconsulting.com/update-records-javascript-buttons/
Bear in mind that the user typically has to give permission for their current location to be used.
I was able to extract the geographical co-ordinates with Geolocation API. Any suggestions on how to extract the entire address corrosponding to the co-ordinates?