I’m wanting to use the BillingLatitude and BillingLongitude fields attached to my Account object in a workflow rule, but I can’t seem to get them to work. I pulled an export via Data Loader of the fields, and they all seem to be blank.
Are these not populated automatically based on the address fields at the same time the Google Map is generated?
If not, how do you go about storing this data?
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Update via Mark Pond for Summer ’16:
Automatically Get Geocodes for Addresses (Generally Available)
you can set up and activate the geocode clean rules for your org. Then, geocodes are added for addresses on existing and new accounts, contacts, and leads.
No, they aren’t populated automatically when the other address fields are populated. You would need to use a third party service to translate the street address into Geolocation coordinates.
The Google Map control will be doing location lookup for you based on the street address.
You could potentially use the Google Geocoding API to do the conversion and then set the BillingLatitude and BillingLongitude fields. See https://developers.google.com/maps/documentation/geocoding/
I’ve also had several clients use https://webview.webservices.nl/documentation/files/service_geolocation-php.html
In Geolocation Field Types in Salesforce1 Platform the following appears:
Geolocation fields are useful only once they are geocoded (populated with latitude and longitude data). Address fields can be geocoded using services from Google, Nokia, ESRI, and other sources. However, Salesforce will be rolling out a geocoding service to our customers in the future. (Naturally, Safe Harbor applies.)
Maybe ask your account executive if you can get on a pilot program for geocoding (assuming such a thing exists).
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0