The HERE Waypoints Sequence Extension API calculates the optimal sequence of any given waypoints along a route, while minimizing the time or distance traveled. Often referred as the “Travelling Salesman Problem”, the service takes into account the HERE road network restrictions as well as traffic pattern data to provide accurate travel times and distances between subsequent waypoints. Mode of travel, by car or truck, as well as route preference like fastest or shortest, can also be considered when applying for specific use cases.
This example set works with version 2.0 or higher
Additional information can be found on developer.here.com