Hi Marcelo: I've checked the sample which you gived, but it seems the "sort" function just calculated the base to the target by the absolute distance. I want get the shortest driving distance, not the absolute distance. could you give me some suggestion? I really don't want to calculate them one by one :(
Thank you Marcelo ! Lili On Mar 26, 8:44 pm, marcelo <[email protected]> wrote: > On Mar 26, 12:49 pm, Li Li <[email protected]> wrote: > > > > > now, I could calculate (by the getDistance method) user's zip code > > postion to each ATM one by one, that means loop 20times, then choose > > the nearest, but it too slowly and inefficient. > > Says who?http://maps.forum.nu/gm_array_sort.html > > -- > Marcelo -http://maps.forum.nu > -- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
