Ejemplo n.º 1
0
        private void UpdateGPSElevationLabel(LocationInformation locationInfo)
        {
            var gpsInfo = string.Format(GPSLocationInformation,
                                        Environment.NewLine,
                                        locationInfo.Latitude,
                                        Environment.NewLine,
                                        locationInfo.Longitude,
                                        Environment.NewLine,
                                        locationInfo.LatLongAccuracyInFeet,
                                        Feet);
            var elevation    = string.Format(ElevationText, locationInfo.ElevationInFeet, Feet);
            var elevationKey = string.Format(GPSElevationKey, locationInfo.ElevationInFeetAccuracy, Feet);

            DisplayGPSElevationLabels(elevation, elevationKey, gpsInfo, GPSQueryingText);
        }
Ejemplo n.º 2
0
 private async void UpdateMapElevationFromGPSPosition(LocationInformation locationInfo)
 {
     DisplayMapsElevationLabel2(await new MapLookup().GetElevationFromMapProvider(locationInfo.Latitude, locationInfo.Longitude));
 }