Beispiel #1
0
        private async void ExecuteLoadBusStops()
        {
            var positions = new List <BasicGeoposition>();
            await _statusBarService.ShowAsync("Loading Bus Stops...", true);

            var location = await _locationService.GetPositionAsync();

            if (location != null)
            {
                var locationBGP = new BasicGeoposition()
                {
                    Latitude  = location.Latitude,
                    Longitude = location.Longitude
                };
                await CreateBusStops(locationBGP);
            }

            if (App.OperatorCodes == null)
            {
                await _statusBarService.ShowAsync("Loading Bus Operators...", true);

                App.OperatorCodes = await getOperatorCodes();
            }

            await _statusBarService.HideAsync();
        }