Google Maps API - Setting 3 lat/long points
-
20-01-2021 - |
Question
In a url we wish to set 3 points for the trip, not just two like this example:
http://maps.google.com/maps?saddr=49.34593,-123.1807&daddr=49.35037,-123.1749
How do we do that?
Solution
http://maps.google.com/maps?saddr=49.34593,-123.1807&daddr=49.35037,-123.1749+to:49.350,-123.17
I just added +to: and a third lat/lng. Your best bet is to just get the map the way you want it, then click the link icon in the upper right and pull out the generated URL.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow