2

The Geolocation Longitude and Latitude coordinates I am getting out of Salesforce are not the same as the Google coordinates for the same address. When I load an Account or Contact address the Map generates correctly and the pinpoint is 100% correct. I have created the longitude and Latitude fields are custom formula fields.

When I check the log/lat in SF I am getting mixed results I can be 1 or 10km out... I have had the odd address within 500mtrs, but this is no good when you want to use this data for a radius search or use the Geoloaction to send a service person to a location.

Has anyone else come across this and did you find a solution to your problem

0

Well, We don't know which address provider API Salesforce is using to get latitude and longitude. So it would be hard to get it fixed from it.

If you think Google API is better, then you can do is call Google geolocation API from Trigger when address is added/changes in Future/Queuable.

There is blog for it: You can refer it.

Src: https://matheusgoncalves.com/geolocation-salesforce-google-api/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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