Video: Perform batch geocoding in Tableau Prep

intermediate
Command line

Use the Geocoding API with Tableau Prep and TabPy to convert locations, like addresses or city names into latitude/longitude coordinates, or the reverse.

You will need Permanent Geocoding enabled on your Mapbox account to use this solution. To get this enabled for your account, contact us .

Getting started

  • 0:00 - Open Tableau Prep and create a new flow, including the data you want to geocode.
  • 0:18 - Verify that your computer has Docker installed and running.

Start the service

  • 0:25 - Go to the tableauGeocode repository and copy the one-line command.
  • 0:32 - Paste the command into your terminal and hit Enter to run it.

Configure TabPy

  • 1:01 - Connect Tableau Prep to the TabPy server.
  • 1:13 - Create a script file.
  • 1:31 - Replace token with your Mapbox access token.
  • 1:46 - Upload the script file.
  • 1:52 - Name the function.

Run the function

  • 1:52 - Run the function in Tableau Prep.
  • 1:56 - View the results.
Was this page helpful?