Thanks for the link, Rossko. I see that the approach there is creating
several GDirections but... in my case, i don't know how many routes i
will need. Actually, all is one large route in which the user can add
points.. It can have 2 points or 25 (i think that's the maximum
allowed). I don't know how to solve this.

Another solution is having all the clicks in one array of points.
Every time the user clicks, I do 2 operations:

1- push this point into the array
2- call the loadFromWayPoints directly with the entire array.

That means that every time a load is called, the map is cleared and a
new one route is written, this route being a point longer than the
previous one. In this way, i'm repeating queries many times, but I get
rid of calculations on the client side (sum all the route times,
different GDirection objects, etc...).

am I wrong with this second approach?


thanks!

Sergi.

On Feb 15, 3:14 pm, Rossko <[email protected]> wrote:
> > Maybe the more efficient solution would be to parse myself the results
> > of this call (I think I can do it if i don't specify a map on the
> > constructor...). Another solution is creating a new GDirections object
> > everytime, but this is not efficient.
>
> Examplehttp://groups.google.com/group/google-maps-api/browse_thread/thread/3...

-- 
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.

Reply via email to