Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add several addresses programatically into a google map

I have a ASP.NET MVC 4 application.

Let's say I have 4 records from my db that has a field address.

Q: How can I send this addresses to a google maps control(or directly to the maps.google.com website) ? enter image description here

like image 792
Misi Avatar asked Feb 16 '23 23:02

Misi


1 Answers

Use the first adress as saddr-parameter(start-address) and the other 3, separated by +to: as daddr-parameter(destination-address)

http://maps.google.com/maps?saddr=strasbourg,france&daddr=troyes,france+to:paris,france+to:nantes,france

description of the parameters: http://www.seomoz.org/ugc/everything-you-never-wanted-to-know-about-google-maps-parameters

like image 114
Dr.Molle Avatar answered Mar 05 '23 20:03

Dr.Molle