Contact Us 214.891.7417 Let's Chat

Tableau Map Tutorial – Linking to Google Maps from Tableau

Tableau Map Tutorial

One request that we have when building maps for Tableau is how to quickly generate directions to the points identified in the map, so that our clients can get directions to our listings, stores, etc. The version used in this Tableau map tutorial is Tableau 8.2 but the steps are relevant to other versions as well.

The first step is to get the latitude and longitude of your locations and import them into Tableau.  Our map will show four real estate listings:

Linking_to_Google_Maps_for_Directions_from_Tableau_1

NOTE: Make sure that your latitude and longitude values are in a number format, so that Tableau can read them as geo-coordinates.

After we import the data, we can simply right click on the Latitude and Longitude fields, and from the context menu choose Geographic Role >> and Latitude or Longitude (whichever is appropriate).

After converting both your Latitude and Longitude to their respective Geographic Roles, simply drag the Longitude into the Columns and the Latitude into the Rows shelves and choose the symbol map from the Show Me drawer. In the below map we have also added the Rental Amount to the Color shelf.

Linking_to_Google_Maps_for_Directions_from_Tableau_2

Linking_to_Google_Maps_for_Directions_from_Tableau_3

Tip: Tableau can be complicated. Our expert Tableau consultants can help. See how or contact us.

Finally, we want to create our link to google maps. Select the Worksheet Menu Option and on the context menu choose the Actions… item. On the next screen choose Add Action > URL…

Linking_to_Google_Maps_for_Directions_from_Tableau_4

The next screen is where you build the link:

Linking_to_Google_Maps_for_Directions_from_Tableau_5

Name: The name that you want to assign to the Action
Run Action On: Choose Select or Menu, depending on how you want the user to interact with the map
URL: Use this URL Base –  http://maps.google.com/maps/?daddr= and use the arrow next to the field to add your Latitude field and Longitude field (separated by a comma).

Click Ok.

Finally, click on any one of your points and you should open up a web browser that shows your point as the destination address in Google Maps.

Linking_to_Google_Maps_for_Directions_from_Tableau_6
NOTE: If you know where you want to start the directions from (i.e. a home office), you can also add the parameter &saddr= to the web link.

Example: http://maps.google.com/maps/?daddr=,&saddr=,

Need help with Tableau? Check out our Tableau Videos. If there’s any further questions on how we can help with your Tableau project or other data endeavors, don’t hesitate to contact WCI for help.

Tableau can be frustrating. Our expert Tableau consultants can help. See how or contact us.

Tableau Consulting Services »

Need More Tableau Help? Contact an Expert