private static void GetLocationError(Position pos) { if (pos != null && pos.Coords != null) { double lat = pos.Coords.Latitude; double lng = pos.Coords.Longitude; } }
private static void GetLocation(Position pos) { Settings.GlobalSettings.LocationLat = pos.Coords.Latitude; Settings.GlobalSettings.LocationLng = pos.Coords.Longitude; Settings.GlobalSettings.LocationAltitude = pos.Coords.Altitude; }