I am making an app based on Google maps. Now the user enters some locations. I want to create a link which has all the locations entered by the user. The user has a limit of 10 locations.
Now i want to create a dynamically to request Google for distances between that locations. How to create the link dynimacally when i don't know how many locations has user entered.
here is the basic link for two locations in Google's documentation:
which gives:
Vancouver to San Francisco Vancouver to Victoria Seattle to San Francisco Seattle to Victoria
now if i have many inputs, how to create this link dynamically using javascript ?
thanks regards.