Custom Geocoding
in Tableau
Learn how to map any location using custom geocoding, resolve unknown locations, and extend Tableau's built-in geographic data with your own latitude and longitude values.
What is Geocoding?
Geocoding is the process of converting place names or addresses into geographic coordinates: latitude and longitude. Tableau has a built-in geocoding database that automatically recognizes countries, states, cities, and zip codes.
Why Custom Geocoding Matters
Whenever your data contains locations that fall outside Tableau's built-in geocoding database, custom geocoding lets you manually supply the coordinates so every row gets plotted on the map.
The Unknown Location Problem
Built-in vs. Custom Geocoding
| Built-in Geocoding | Custom Geocoding | |
|---|---|---|
| Data Source | Tableau's internal database | Your own CSV / data file |
| Location Types | Countries, states, cities, zips | Any location you define |
| Setup Required | None: automatic matching | Import lat/lng coordinates |
| Precision | City-level centroids | Exact coordinates you provide |
| Flexibility | Limited to known names | Unlimited: any point on Earth |
The Core Rule of Custom Geocoding
Three Methods to Resolve Locations
Step-by-Step: Custom Geocoding
The CSV File Format
Example 1: Edit Locations Dialog
You have a dataset with a "City" field. Tableau recognizes most cities, but "Springfield" matches multiple states. The indicator shows 3 unknown locations.
Example 2: Import Custom Geocoding
Your company has 15 regional distribution centers identified by internal codes (DC-001 through DC-015). Tableau has no idea what these codes mean.
Example 3: Lat/Lng Directly in Data
Understanding Geographic Roles
A geographic role tells Tableau how to interpret a field. When you assign a role, Tableau knows whether a number like 40.7128 is a latitude, a zip code, or just a plain number.
The Geocoding Workflow
Common Mistakes to Avoid
Summary: Resolution Methods
| Edit Locations | Import CSV | Lat/Lng in Data | |
|---|---|---|---|
| Best For | Quick fixes | Reusable location sets | Full control |
| Speed | Fastest | Moderate | Varies |
| Persistence | Workbook only | Tableau Repository | Tied to data source |
| Scalability | Low (manual) | High | Highest |
| Requires Lat/Lng | No | Yes | Yes |
Question 1 of 5
What does custom geocoding allow you to do in Tableau?
Question 2 of 5
When importing a custom geocoding CSV, which three columns are required at minimum?
Question 3 of 5
You drag a Latitude field to Rows and a Longitude field to Columns, but only one point appears on the map. What is the most likely cause?
Question 4 of 5
The valid range for Latitude values in decimal degrees is:
Question 5 of 5
Where do you access the Import Custom Geocoding feature in Tableau?