IRouteMatrix Interface |
Classes that implement this interface perform routing calculations on a matrix of RouteStop objects.
See RouteMatrix and MultiThreadMatrix.
Namespace: Telogis.GeoBase.Routing
The IRouteMatrix type exposes the following members.
Name | Description | |
---|---|---|
CurrentTime |
Sets the start time for the routes from each of the stops in the matrix.
This will be used to guide time-specific routing features such as traffic
and constraints. The time is in UTC.
| |
LocationsToCalculate |
Returns an array of LatLon objects, which contains the locations
to calculate as part of this route matrix. This property allows you to define a subset of
locations to calculate the route matrix from, to speed up calculations. If this property is
null, all rows and columns of the route matrix are calculated.
| |
ObeyConstraints |
Setting this true ensures that constraints are obeyed when calculating routes.
| |
Stops |
Returns the array of stops in the order of the matrix.
| |
Strategy |
Sets the routing strategy. When the routing strategy is changed
the existing network is recalculated rather than rebuilt. Changing the
strategy on an existing RouteMatrix object is much faster than creating
a new one.
| |
VehicleSpec |
Applies a VehicleSpec to this RouteMatrix. When this value is changed the existing
network is recalculated rather than rebuilt, and constraints are enabled
automatically.
|
Name | Description | |
---|---|---|
AddStop |
Add a new RouteStop to the matrix.
| |
AddStops |
Add new RouteStops to the matrix.
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
Distances |
Returns an array of travel distances (in meters) from the specified stop to all other stops.
| |
RecalculateFull |
Clear the cached results from the matrix's times/distances/costs calculations.
| |
Times |
Returns an array of travel times (in seconds) from the specified stop to all other stops.
|