1

i am currently displaying a single Placemark on google map using q= parameter: https://maps.google.com/maps?q=lat long

Now i want to display multiple points/Placemark, i couldn't find a way other then using dir interface: https://www.google.com/maps/dir/lat1 long1/lat2 long2.... But this display a route and not points - and the route doesn't always represent the real route as it depends on roads...

Is there a way to display multiple point, lines, placemarks using google maps API through URL ?

guy berlin
  • 19
  • 2

1 Answers1

3

I am able to get two simple points on a map using "/ /" between the addresses. For instance, the following URL:

https://www.google.com/maps/dir/5+St+Marks+Pl,+New+York,+NY+10003/+/18+W+8th+St,+New+York,+NY+10011

Produces the following result, showing two points:

https://www.google.com/maps/dir/5+St+Marks+Pl,+New+York,+NY+10003/+/18+W+8th+St,+New+York,+NY+10011

dbc
  • 104,963
  • 20
  • 228
  • 340
Clay
  • 141
  • 4