Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

GH-343: Take into consideration VerticalAccuracy on iOS Altitude #344

Merged
merged 2 commits into from
Jun 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Xamarin.Essentials/Types/LocationExtensions.ios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal static Location ToLocation(this CLLocation location) =>
{
Latitude = location.Coordinate.Latitude,
Longitude = location.Coordinate.Longitude,
Altitude = location.Altitude,
Altitude = location.VerticalAccuracy < 0 ? (double?)null : location.Altitude,
Accuracy = location.HorizontalAccuracy,
TimestampUtc = location.Timestamp.ToDateTime()
};
Expand Down