/// <summary> /// Calculates metrics for the given route. /// </summary> /// <param name="route"></param> /// <returns></returns> public Dictionary <string, double> Calculate(Route route) { var aggregator = new OsmSharp.Routing.Instructions.ArcAggregation.ArcAggregator(_interpreter); var p = aggregator.Aggregate(route); return(this.Calculate(Vehicle.GetByUniqueName(route.Vehicle), p)); }
/// <summary> /// Calculates metrics for the given route. /// </summary> /// <param name="route"></param> /// <returns></returns> public Dictionary<string, double> Calculate(Route route) { var aggregator = new OsmSharp.Routing.Instructions.ArcAggregation.ArcAggregator(_interpreter); var p = aggregator.Aggregate(route); return this.Calculate(Vehicle.GetByUniqueName(route.Vehicle), p); }