in reply to Efficient Assignment of Many People To Many Locations?
e.g.
dist from 3rd dim | map coordinates
20 | 0,0
15 | 1,2
sort this array by distance.
Now any destination you choose on the grid can be have it's distance calculated from the 3rd dimension point. A binary search of the sorted cross reference for distances equal to, or just above and below your destination distance should give you your top choices.
This assumes of course you have enough data to make the set up worth the effort and that the sales reps are based from the same place repeatedly. HTH!
Enjoy!
Dageek
|
|---|