Try the extendedApi... http://www.basicslabs.com/Projects/extendedApi/ <http://www.basicslabs.com/Projects/extendedApi/>you can use a latlng and call the function distanceFrom(latlng) to get the distance in meters... Just sum de results and get what you need.
On Wed, Feb 16, 2011 at 8:52 AM, Rafael <[email protected]> wrote: > I have a similar need, but I ended up calculating the distances one by > one. > If you want, I can send you a code sample. > > By the way, I'm aware that for the Public Google Maps API, it is not > allowed to use geocoding/directions features without showing a map. > > Does that also apply to the Premier API? > I couldn't find this information on the terms of service. > > Thanks in advance, > > Rafael > > On Feb 16, 9:44 am, Martin™ <[email protected]> wrote: > > The Directions service can do that but NOT all 25 routes in one batch. > http://code.google.com/apis/maps/documentation/javascript/services.ht... > > > > You'd have to request one route after another and watch you don't fall > > foul of the Directions services' limits. > > (Don't request too many routes in too short a space of time). > > > > Can't you look at the source code of the site where you've seen 25 > > routes calculated at once to see how that site did it? > > > > Martin. > > > > On Feb 16, 11:28 am, mhh <[email protected]> wrote: > > > > > > > > > > > > > > > > > Hello group, > > > > > I am looking for a script using the google API that can calculate > > > several driving distances at once. > > > > > I have 25 different coordinates as starting points and 1 single > > > coordinate as the ending point. The script should calculate all 25 > > > distances at once. > > > > > Could anybody help me if there is no script available ? I know it's > > > possible since I saw it on a website. > > > > > Thanks a lot ! > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" 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-js-api-v3?hl=en. > > -- Atc, Diogo -- -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
