On Jul 14, 5:32 am, Kevin Gleason <[email protected]> wrote: > Yes Mike, I agree. Actually I wasn't planning on taking up Google bandwidth > with mapping solutions I was wondering what program code might look like if > I submitted latitude/longitude values to Google via getDistance() and > getDuration() methods. Just how do these methods work ie, can I pass as > arguments directly into each of these methods OR must I do any preliminary > operations first?
Those are methods of the GDirections class, they can only be called after a route has been returned from the server (which is why Mike suggested using the straigth line distances between points rather than GDirections calls as those don't require any interaction with the server). -- Larry > > In some delivery scenarios (especially for inept order takers) just knowing > that a delivery is 25 minutes away (using the best route) is enough for them > to pass on the order (considering the cost of petrol and all). > > Thanks! > > -- K -- > > On Tue, Jul 14, 2009 at 7:36 AM, Mike Williams > <[email protected]>wrote: > > > > > > > Google Maps API is not a good tool for optimizing delivery routes, > > particularly ones with multiple stops to be visited in an optimal order. > > If you've got more than five or six stops to consider, it's likely to be > > rather slow. I suggest looking elsewhere for a more appropriate tool. > > > If you must use Google Maps API, then consider doing the bulk of the > > calculations with straight line distances, producing a small number of > > candidate routes, and then checking the durations of those candidate > > routes with GDirections, using .loadFromWaypoints(). > > > -- > > Mike Williams > >http://econym.org.uk/gmap- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
