MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLShortestRouteHelper Class Reference

Detailed Description

This class provides low-level access to the underlying follow mode functionality.

Static Public Member Functions

static bool shortestRoute (TSLBoundaryHelper &network, const TSLCoord &from, const TSLCoord &to, TSLCoordSet &coords)
 

Member Function Documentation

◆ shortestRoute()

static bool TSLShortestRouteHelper::shortestRoute ( TSLBoundaryHelper & network,
const TSLCoord & from,
const TSLCoord & to,
TSLCoordSet & coords )
static

Calculate the shortest route between the specified two coordinates via the specified network defined by the boundary helper.

Parameters
networkThe network to traverse
fromCoordinate to route from - must match a vertex in the network
toCoordinate to route to - must match a vertex in the network
coordsstorage for the route details. Any edges already in this list will not be used when calculating the route in order to stop backtracking.
Returns
true if a route was found between between from and to, false otherwise. The additional points are added to the coords object.