Exemple #1
0
        public override ConLocation GetProcessedData()
        {
            var BikeContainers = base.Dec_DataProcessor.GetProcessedData().Filter(item => item.GetLatitude() != 0 || item.GetLongitude() != 0);
            AdaptedList <ConLocation> Locations = BikeContainers.Map <ConLocation>(item => new ConLocation(item,
                                                                                                           Extensions.Distance(item.GetLatitude(),
                                                                                                                               item.GetLongitude(),
                                                                                                                               UserLat,
                                                                                                                               UserLon)));
            var filtered = Locations.OrderBy(e => e.Dist).ToList();

            return(filtered[0]);
        }