I am trying to find out if there’s a way to populate addresses in Google Maps, rather than latitude/ longitude coordinates, when you click on an address on the website using Geolocation. It may be inconvenient for some users not to receive an actual address in Google Maps when getting directions. Any help is appreciated. Thanks.
You can try overriding the listing-location.php template part and add a custom Google Maps link there with
$listing->get_location(), but I don’t recommend this because using latitude/longitude is the most precise way, if you pass the location text to Google Maps it may not be found correctly (e.g. if vendors edit the location text after selecting it from the suggestions).
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.