Click or drag to resize

MultiThreadMatrixGetSlot Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Returns the slot value (row index) for the specified LatLon

Namespace:  Telogis.GeoBase.Routing
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public int GetSlot(
	LatLon location
)

Parameters

location
Type: Telogis.GeoBaseLatLon
The LatLon for which to retrieve the slot value.

Return Value

Type: Int32
The slot value of the specified LatLon.
Exceptions
ExceptionCondition
ValueNotFoundExceptionThrown if the location LatLon is not found in the matrix.
Examples
C#
//Create stops
RouteStop stop_A = new RouteStop(33.83818, -117.90488);
RouteStop stop_B = new RouteStop(33.82960, -117.90041);

//Create new MultiThreadMatrix
//    * RouteStop array
//    * strategy -> RoutingStrategyFastest
MultiThreadMatrix myMTM = new MultiThreadMatrix(new RouteStop[] {stop_A, stop_B }, new RoutingStrategyFastest());

//Get slot
string sSlot = (myMTM.GetSlot(stop_A.Location)).ToString();

//Output to console
Console.WriteLine("stop_A slot = " + sSlot);
See Also