Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For example,

On click of a button, Salesforce1 App tracks user location & update/create a field/record in Salesforce with location information.

share|improve this question
up vote 2 down vote accepted

You can use Google Directions API and the HTML5 Geolocation API. The Geolocation API is able to retrieve the latitude and longitude of the device’s position.

share|improve this answer

Salesforce1 app can be customized using publisher actions, custom tabs and mobile cards on object page layout. You can create a Visualforce page which can grab user location using javascript Geolocation API and fetch address or longitude latitude of device, which can be used to update details in associated Salesforce record same way we do in normal visualforce pages.

Google's Map is the best way to fetch user address from the location fetched from device.

There is a post similar to this:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.