When using Events Calendar Pro and the latitude and longitude coordinates are set up for a venue, then the “Get Directions” or “+ Google Map” link for the venue will use those coordinates to pinpoint the location on the map. This is a more reliable and precise way to locate a venue.

When clicking on that link, the visitor will be taken to the Google Maps website, which will then show the coordinates as the location, and not the name or address, which can offer a subpar user experience.

Image of Google Maps centered on the White House with coordinates showing the location.
Image of Google Maps centered on the White House with coordinates showing the location.

Fortunately, there is an easy way to change that. All it requires is a one-line snippet, which you can add to your child-themes functions.php file, or with the help of a plugin like Code Snippets. (Check out our article about Using Custom Code Snippets.)

add_filter( 'tribe_events_pro_google_map_link_disable_coordinates', '__return_true' );

With that line in place, when you click on the “+ Google Maps” or “Get Directions” link you will be taken to Google Maps with the address instead of the coordinates as the location.

Image of Google Maps centered on the White House with the address showing the location.
Image of Google Maps centered on the White House with the address showing the location.