Click or drag to resize

MultiThreadMatrixGetTime Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Get the time (in seconds) from point to point.

Namespace:  Telogis.GeoBase.Routing
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public double GetTime(
	LatLon from,
	LatLon to
)

Parameters

from
Type: Telogis.GeoBaseLatLon
The LatLon of the first point.
to
Type: Telogis.GeoBaseLatLon
The LatLon of the second point.

Return Value

Type: Double
The times in seconds required to travel between 'from' and 'to'.
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 time
string sTime = ((myMTM.GetTime(stop_A.Location, stop_B.Location)) / 60).ToString("0.##");

//Output to console
Console.WriteLine("Time between stop_A and stop_B = " + sTime);
See Also