/// <summary> /// Gets the route segment stats. /// </summary> /// <param name="routeSolution">The route solution.</param> /// <returns>a list of statistics for each leg of the route</returns> public IList <RouteSegmentStatistics> GetRouteSegmentStats(NodeRouteSolution routeSolution) { var startTime = routeSolution.StartTime; var routeStops = _routeService.GetRouteStopsForRouteSolution(routeSolution); var segmentStats = _routeStopService.CalculateRouteSegmentStatistics(startTime, routeStops); return(segmentStats); }
public IList <RouteSegmentStatistics> CalculateRouteSegmentStatistics(TimeSpan startTime, IList <RouteStop> stops) { return(_routeStopService.CalculateRouteSegmentStatistics(startTime, stops)); }