Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
Full Maps and Location Settings entry
How-to guide

Turn on geocoding through Data Integration Rules

Geocoding is enabled by activating the standard geocode Data Integration Rules, which Maps and Location Settings links to. You activate each address rule you care about, let the first run process existing records, and from then on new and edited records geocode automatically on save.

By Dipojjal Chakrabarti · Founder & Editor, Salesforce DictionaryLast updated Jun 16, 2026

Geocoding is enabled by activating the standard geocode Data Integration Rules, which Maps and Location Settings links to. You activate each address rule you care about, let the first run process existing records, and from then on new and edited records geocode automatically on save.

  1. Open Data Integration Rules

    In Setup, use the Quick Find box to open Data Integration Rules. The four standard geocode rules for Account billing, Account shipping, Contact mailing, and Lead addresses are listed there, alongside the Maps and Location Settings configuration.

  2. Review the rule before activating

    Select a geocode rule and review its field mapping and the overwrite behavior. To test safely first, you can update a few records manually with the bulk option deselected, confirm the coordinates populate as expected, then proceed.

  3. Activate the rule

    Activate each address rule you need. On first activation the rule runs as a batch against the object's existing records. If the object holds more than 10 million records, the initial bulk run is skipped and you geocode those records another way.

  4. Confirm ongoing geocoding and check accuracy

    After activation, records geocode automatically when added or edited. Because the service is asynchronous, allow a short delay, then query the Latitude, Longitude, and accuracy fields to confirm new records resolve at a usable confidence level.

Geocodes for Account Billing Addressremember

Populates BillingLatitude, BillingLongitude, and BillingGeocodeAccuracy on the Account billing address.

Geocodes for Account Shipping Addressremember

Populates ShippingLatitude, ShippingLongitude, and ShippingGeocodeAccuracy on the Account shipping address.

Geocodes for Contact Mailing Addressremember

Populates MailingLatitude, MailingLongitude, and MailingGeocodeAccuracy on the Contact mailing address.

Geocodes for Lead Addressremember

Populates Latitude, Longitude, and GeocodeAccuracy on the Lead address.

Gotchas
  • The geocode rules use an overwrite method, so reactivating a rule or editing an address can replace previously good coordinates.
  • The initial bulk run does not execute on an object that already holds more than 10 million records.
  • Coordinate and accuracy fields are read-only and hidden from standard layouts; query them through SOQL or the API to verify results.
  • Activating geocoding does not grant a Salesforce Maps license or configure Field Service location rules; those are separate setups.

See the full Maps and Location Settings entry

Maps and Location Settings includes the definition, worked example, deep dive, related terms, and a quiz.