Hi,
I am trying to create a map app using google maps API. My aim is to get some
locations as input from the user (as string of addresses like "Mountain
view, CA"... etc), store those strings in an array and then use that array
as an input to a function that can in an iterative manner calculate the
driving distance between every pair of address in the array and store those
distances in a new 2-D array where ,
dist[i][j] = driving distance b/w i and j
dist[i][j] = 0 for i = j
dist[i][j] = dist [j][i]
while searching for solutions to the problem I did come across some
potential solutions like -
http://briancray.com/2009/06/23/calculate-driving-distance-google-maps-apibut
the solution provided here calculates the driving distance between any
2
addresses that are entered by the user in 2 separate forms. My question is
how can I sort of automate this process while using an array as the input?
I am attaching a file containing the code I have so far.
It just takes as input an address and puts a marker on that location &
prints all the points that the user has marked so far.
--
Rohit Malhotra
Undergraduate Student
Bachelor of engineering (Information Technology)
Netaji Subhas Institute of Technology
University of Delhi, Dwarka sect-3
Delhi, India
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---
Title: Google Maps API Example: Simple Geocoding
You Entered