Automatically Get Geocodes for Addresses fields in Salesforce

Geocodes identify a location using latitude and longitude. Geocodes also have an associated accuracy rating. Geocodes are added to the pre-existing latitude and longitude fields on accounts, contacts, and leads. The accuracy field is also populated. By default, these fields aren’t visible on records, but you can check them out in a few ways, including using custom formula fields and querying the Salesforce API.

Geocodes are added only for some standard addresses.
Billing Address on accounts
Shipping Address on accounts
Mailing Address on contacts
Address on leads

Person accounts are not supported.

Sample SOQL:

SELECT Id, BillingLatitude, BillingLongitude, BillingGeocodeAccuracy, BillingStreet, Name FROM Account WHERE BillingLongitude != null

No comments:

Post a Comment