Monday, 21 January 2019

routing - Looking for TSP with Target different from Source


I know the TSP (traveling sales person) in osm2po is beta but it works quite well.


Is there a way to designate a final target location that is different from the initial source location. In other words, I would like to designate:



  1. Start location

  2. Several intermediate locations

  3. End location (different from start location)

  4. Determine the best way to begin at the Start location, travel to all the intermediate locations while hitting the End location last.



Currently, I see the TSP only does a round trip from an initial start location.



Answer



I've just modified osm2po-tsp. Now it should handle different sources and targets and intermediate vertices.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...