Is there a way to sort the array that is returned from Routeboxer? In addition to displaying markers along a route, I also display the marker locations in a list, and I want the list sorted by distance (closest from origin to farthest). However, Routeboxer seems to return the array sorted by latitude (?).
Asked
Active
Viewed 117 times
1 Answers
0
You will have to sort the result manually. The Routeboxer sorting is intentional so that the route is preserved, beginning at the origin and ending at the destination to give you the bounds boxes of the route itself.

Community
- 1
- 1

ChrisSwires
- 2,713
- 1
- 15
- 28