0

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

Hassan Mahmood
  • 1,591
  • 2
  • 12
  • 24

1 Answers1

2

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
Alexis C.
  • 4,898
  • 1
  • 31
  • 43
  • Do you know if this data comes from the device barometer or it's data from a flat map? – Idan Mar 29 '15 at 14:22