Misi
Misi

Reputation: 748

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

Upvotes: 4

Views: 2651

Answers (1)

Dr.Molle
Dr.Molle

Reputation: 117324

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

Upvotes: 9

Related Questions