TTMSFNCRouteCalculator programmatically creating routes and traveling salesman problem

Hello,

After looking at the TTMSFNCRouteCalculator demo, I have 2 questions:

  1. How can I programmaticly show a Route with more than 2 adresses ?
    for example: after the button click, I want to show a route from Amsterdam->Brussel->Eindhoven->Groningen

  2. Is it possible to retrieve the optimal route? ( traveling salesman problem )

kind regards,

Dirk Janssens.

Hi,

To display predefined routes it is recommended to use the TTMSFNCDirections component in combination with the TTMSFNCMaps component.
When using the GetDirections call, you can add a list of waypoints with the AWayPoints parameter and specify if the route should be optimized with the AOptimizeWayPoints parameter.
The resulting data is returned in the OnGetDirections event and can be used to display a polyline on the map.

Detailed info can be found in the online documentation:

1 Like