MultiThreadMatrix Constructor (RouteStop, RoutingStrategy, LatLon, Int32, Boolean, LinkCost) | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Create a MultiThreadMatrix using an array of
RouteStops, and a
RoutingStrategy. Define the number of threads to use (
NumThreads), and specify if the calculated data should be saved to disk (
persist = true) for quicker, subsequent data reading.
Namespace:
Telogis.GeoBase.Routing
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public MultiThreadMatrix(
RouteStop[] InitialStops,
RoutingStrategy Strategy,
LatLon[] locationsToCalculate,
int NumThreads,
bool persist,
LinkCost MaxCost
)
Public Sub New (
InitialStops As RouteStop(),
Strategy As RoutingStrategy,
locationsToCalculate As LatLon(),
NumThreads As Integer,
persist As Boolean,
MaxCost As LinkCost
)
Parameters
- InitialStops
- Type: Telogis.GeoBaseRouteStop
The array of RouteStops to use for this calculation. - Strategy
- Type: Telogis.GeoBase.RoutingRoutingStrategy
The RoutingStrategy to use for this calculation. - locationsToCalculate
- Type: Telogis.GeoBaseLatLon
If there are items in the array, a subset of locations is used to calculate only the
rows and columns of a smaller route matrix. If the property is null, all rows and columns are calculated. - NumThreads
- Type: SystemInt32
The number of threads to use for this calculation. - persist
- Type: SystemBoolean
When true, the calculation results are automatically saved and loaded from disk,
as and when required, allowing for faster, subsequent, data retrieval. - MaxCost
- Type: Telogis.GeoBase.RoutingLinkCost
The maximum allowable cost of any route - if this cost is exceeded, then a value of 'Infinity' (Double.PositiveInfinity) is returned.
Examples See Also