If you just want the distance you should consider using the distance matrix api http://code.google.com/apis/maps/documentation/distancematrix/
But its proably best to upgrade to v3 first - then you can use it as part of the api: http://code.google.com/apis/maps/documentation/javascript/services.html#distance_matrix Otherwise see http://econym.org.uk/gmap/geomulti.htm On Tue, Jun 21, 2011 at 11:29 PM, Rock <[email protected]> wrote: > > > Hello ! > I am getting distance by "Using Gdirections class object " called in a loop > after a delay of 980. > which will be faster in processing . > > dir.load("from: " + start.lat() + "," + start.lng() + " to: " + lat + "," > + lng); > or if i pass address > dir.load("from: " + Addresslocation1 + " to: " +Addresslocation1 ); > Current i am passing address. > > Now the actual problem is sometimes it is getting struck in middle while > processing for even small no. > of records for which generally it display results easily say 4 locations. > But, at the same time if browser is refreshed it shows the desired result. > I am unable to get this sorted out. I have even removed the geocoder class i > was earlier using. > > Also i need to get it cached so that execution time can be saved. > Kindly suggest i could get this post most relevant to what i am doing or > wished to do. I am just required to get distance. > > thanks > > ROCK > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API V2" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-maps-api/-/DYc2Aa4hMbEJ. > 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. > -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
