public async Task<Location> CalculatePositionAsync() { if (_lastLocation != null) { return _lastLocation; } if (_applicationSettingService.LocationFixed) { _lastLocation = new Location { Latitude = _applicationSettingService.LocationFixedLatitude, Longitude = _applicationSettingService.LocationFixedLongitude }; } else { _lastLocation = await CalculatePositionInternalAsync(); } return _lastLocation; }
public LocationCalculatedEventArgs(Location location) { CalculatedLocation = location; }