MultiThreadMatrixGetTime Method |
Namespace: Telogis.GeoBase.Routing
//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);