public IEnumerable <ITrackingInformation> GetTrackingInformationByRouteIds(IEnumerable <int> routeIds) { var routes = new List <RouteInfo>(); foreach (var batch in routeIds.Batch(5)) { var wrappedData = this.dataLoader.GetBusLocations(batch).Result; routes.AddRange(wrappedData.Data); } return(RouteConverter.GetTrackingInformation(routes)); }
public IEnumerable <IRouteInformation> GetRoutes() { var wrappedData = this.dataLoader.GetGeneralData().Result; return(RouteConverter.GetRouteInformation(wrappedData.Data)); }