azilc / polling-place-map

A polling place locator for Arizona's Indian Country, supporting voters without standard addresses
https://az-polling-place-map-ilc.netlify.app/
4 stars 2 forks source link

Google Maps link should go directly to directions #12

Closed bertday closed 3 years ago

bertday commented 3 years ago

Right now if you click the "Open in Google Maps" link it will just open that lat/long in Google Maps. We should be able to open it directly to suggested driving directions.

More here: https://developers.google.com/maps/documentation/urls/get-started#directions-action

bertday commented 3 years ago

I just noticed this doesn't seem to be using the location of where the user clicked the map as a starting point for me. It's defaulting to my current location.

image

versus this is where I clicked the map (near Grand Canyon Village)

image

Just wanted to check in and see if that's how it's supposed to work (i.e. starting at the current location was intentional).