Automatically Get Geocodes for Addresses (Generally Available)

Help your sales and marketing teams find nearby prospects, assign territories and campaigns, and more! All this is a cinch with geocodes. In just a few clicks, 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. You can set up geocode clean rules in Salesforce Classic only.
Available in: Professional, Enterprise, Performance, Unlimited, and Developer Editions



Geocodes are added to records using technology. However, a license is not required to use this feature.

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.


You add an account with a value of One Market Street, San Francisco, CA 94105-5188, United States for the Billing Address field. When you save this account, values for the BillingLatitude, BillingLongitude, and BillingGeocodeAccuracy fields are added.
  • 37.793819 to BillingLatitude
  • -122.395089 to BillingLongitude
  • Address* to BillingGeocodeAccuracy
*An Address accuracy rating means that the latitude and longitude represent a point that’s in the same building as the address on the record.