Salesforce Maps has its own mechanism to geocode the latitude and longitude of records so markers plot accurately on the map. This article answers common questions about how geocoding works in Salesforce Maps, including how standard and custom address fields are geocoded, what accuracy factors affect results, how often the geocoder updates, and how to use Verified Latitude/Longitude fields to override geocoded coordinates.
This article answers frequently asked questions about the end-to-end geocoding process in Salesforce Maps. Each section covers a distinct aspect of geocoding behavior to help administrators and users understand and troubleshoot coordinate accuracy.
Note: The geocoding service is asynchronous, so there might be a slight delay in updating geo fields.
Geocoding is the process of taking input text, such as a street address, and returning a latitude and longitude that can be used to plot the location on the Earth's surface.
Salesforce Maps interacts with a geocoding service through an API. Addresses are sent to the geocoder, which determines the most accurate latitude and longitude for the given address and returns a response.
Salesforce Maps handles unstructured partial and full-address information. When geocoding custom address fields, Maps uses free-text query parameters in requests to the geocoding service. The requests are unstructured, meaning a list of strings is sent without designating which string represents which address component.
Requests are sent to the geocoder service in a format like this (URL decoded to show whitespace):
`https://geocoder.mapanything.io/6.2/geocode.json?searchtext=200 S Mathilda Sunnyvale CA&gen=9`
In the example above, the search text parameters are string values that are components of the address:
The strings passed in the geocoder request are constructed in one of two ways. For example, when geocoding a layer plotted in the product, the string is constructed using commas: "200, S Mathilda, Sunnyvale, CA 94086". When geocoding is done in batches, the address is constructed and sent without commas: "200 S Mathilda Sunnyvale CA 94086".
In general, the more text parameters passed in the request (for example "CA", "94086"), the higher the confidence in match quality.
Note: In rare cases, street addresses that contain the word "and" may lead to inaccurate geocodes. Remove "and" from the street address, or use the Set Verified Location feature instead.
Standard Address Fields
If you use Salesforce's standard Account Billing Address or Account Shipping Address, use the standard data integration rules to geocode your records and update their coordinates anytime the address fields change.
If the org has data integration rules active, data.com will geocode records for these standard objects:
For more information on activating data integration rules, see Activating Data Integration Rules.
Custom Address Fields
Custom address fields are geocoded by Salesforce Maps. If you use custom address fields for any base objects, create automation to clear a record's latitude and longitude and re-geocode it whenever any address field for that record updates.
Salesforce Maps uses different coverage levels for different countries. For information on geocoder coverage, see Salesforce Maps Geocoder Coverage. This coverage is based on geocoding custom address fields only.
In general, the more detailed the address you provide, the higher the potential match accuracy. Behind every geocoder is a parsing engine that determines the correct syntax of the parameters passed to it so it can correctly query the database — in this case, a series of text strings.
Because Salesforce Maps sends unstructured geocoding requests, result accuracy depends heavily on the number of parameters sent and the quality of those parameters. The geocoder's parsing engine takes the unstructured string parameters, determines the correct address syntax, and queries appropriately, taking into account the correct address format for different countries. The default address format for Salesforce is the American address format.
Review these examples of free-text query parameters:
The geocoder uses this information to determine latitude and longitude — the more parameters in the request, the higher the accuracy of the result. For example, comparing "2, first ave, Australia" to "2, First Avenue, Belfield NSW, Australia," the second example is more accurate because of the added city (Belfield) and full street type (Avenue). Without those additions, the geocoder can't give accurate results, since there are numerous addresses in Australia matching "2 First Ave."
For unfamiliar addresses, it can be hard to know if the format is correct for a given country or to judge address quality. The geocoder determines the match level it can achieve based on the parameters given, so there can be many "2 First Avenues" in Australia across different cities, which can result in incorrect matching.
Different countries have different levels of coverage, which correlates with how accurately an address matches to coordinates. See the Salesforce Maps Geocoder Coverage article for details. There's a possibility of inaccurate lat/long results, especially where coverage for the country or area isn't Full coverage.
1. If you enter a common city name without a state or country, the geocoder can return inaccurate results.
For example, without knowing the state or country, the geocoder can deliver inaccurate results for the city of Monterrey, since California (USA), Colombia, and Spain all have cities named Monterrey.
2. Avoid entering unnecessary information in the address fields.
If you import address data into Salesforce, some records might include additional details that confuse the geocoder. For example:
Attn Finance Director
77 Center Drive
Charlotte, NC 28217
3. Enter the correct country for an address.
For example, the incorrect country in this address prevents the geocoder from delivering accurate results:
Salesforce Maps
77 Center Drive
Charlotte, NC 28217
Canada
4. Avoid entering the country or state multiple times.
For example, multiple entries for state prevent the geocoder from delivering accurate results:
Salesforce Maps
77 Center Drive
Charlotte, NC 28217
North Carolina, USA, US NC 28217
5. For the most accurate geocoding results, use the local address. Avoid translating addresses into American English unless the language uses Cyrillic, Logographic, or Ideographic writing systems. Characters outside of 'A-Z' and '0-9' may return a response but aren't supported.
Porscheplatz 1
70435 Stuttgart
Deutschland
6. Avoid including apartment, suite, and unit numbers in street addresses.
Adding that information to your street address field can cause plotting issues in Salesforce Maps. Instead, add the apartment, unit, or suite number to a separate field on the record. For example:
77 Center Drive,
Suite 400,
Charlotte, NC 28217
000380853

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.