コード例 #1
0
        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));
        }
コード例 #2
0
        public IEnumerable <IRouteInformation> GetRoutes()
        {
            var wrappedData = this.dataLoader.GetGeneralData().Result;

            return(RouteConverter.GetRouteInformation(wrappedData.Data));
        }