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

Did you miss what Andrew suggested?
Combining methods -
First, find the nearest handful of ATMs using the simple straight line
distance.
The simple maths can deal with hundreds of ATMs
Then do getDirections on just that handful and find the nearest one of
those.
You only ever do directions on a few ATM, even when you know about
hundreds.

cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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