You are here

Sample Source Code: OSRM Trip Service Curl Sample Code Followers

The OSRM Trip Service Curl Sample Code demonstrates how to implement a trip plugin that solves the Traveling Salesman Problem using a farthest-insertion algorithm. The returned path does not have to be the fastest path, as TSP is NP-hard it is only an approximation.