Closed solidsnake2013 closed 9 years ago
What do you mean by 'sort points'
I would like to calculate point sorting To calculate the shortest distance Please check example :
This is unsorted:
This is After ordering :
Thank you for your prompt reply!
So you want to calculate the shortest route that visits all points?
This problem is called Traveling Salesman Problem and can be solved using the table
plugin that computes all pair-wise distances.
OSRM has no build-in solution to solve this problem for you. But a quick google search should turn up algorithms to solve this.
Do you have any good recommendation?? Thanks
duplicate to #611
Hi
I using osrm calculate route, I have very speed calculate route, but some time I realized that the point order is unreasonable.
The function of OSRM provide point sort?