![]() |
MapLink Pro 11.2
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
The TSLRouteQuery object returned by the TSLTiledNetwork::route method will provide information about a query made on the tiled network. All objects contained within the TSLRouteQuery are copies of the original network data and will remain valid until the TSLRouteQuery object is destroyed.
The order of the nodes and links contained in the TSLRouteQuery object follow the order of the nodes and links calculated for the route. i.e. get_node(0) returns the start node, get_link(0) returns the first link in the route and so on.
Public Member Functions | |
void | destroy () |
double | get_cost (long index) |
const TSLLinkReference * | get_link (long index) |
const TSLNodeReference * | get_node (long index) |
long | node_count () |
long | link_count () |
TSLPolyline * | generatePolyline (long from_index=0, long to_index=-1) |
void TSLRouteQuery::destroy | ( | ) |
Destructor for the object
TSLPolyline * TSLRouteQuery::generatePolyline | ( | long | from_index = 0, |
long | to_index = -1 ) |
Generates a TSLPolyline composed from the links between the node identified by the from index and the node identified from by the to index. The user is responsible for managing any TSLPolylines created.
from_index | index of the node to start generating from |
to_index | index of the node to end generation |
double TSLRouteQuery::get_cost | ( | long | index | ) |
Gets the cost for a link at the given index
const TSLLinkReference * TSLRouteQuery::get_link | ( | long | index | ) |
Returns a pointer to the TSLLinkReference for the link at the specified index.
index | index to the found links |
const TSLNodeReference * TSLRouteQuery::get_node | ( | long | index | ) |
Returns a pointer a TSLNodeReference for the node at the specified index.
index | index to the found nodes |
long TSLRouteQuery::link_count | ( | ) |
long TSLRouteQuery::node_count | ( | ) |