Hassan Mahmood
Hassan Mahmood

Reputation: 1601

CoreLocation/Mapkit Altitude

Just a quick question, does CoreLocation/Mapkit measure altitude from sea level (elevation)?

I am using the following code

NSString *altitudeString = [NSString stringWithFormat: @"%.2f m", newLocation.altitude];

Thank You

Upvotes: 0

Views: 487

Answers (1)

Alexis C.
Alexis C.

Reputation: 4918

Yes, you can check the altitude via the locationManager like this :

locationManager.location.altitude

you can also check the vertical accuracy with :

locationManager.location.verticalAccuracy

Upvotes: 2

Related Questions