I would like to know if an altimeter is available on iOS, and, if not, is there a way to calculate height, with much possible accuracy?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The iPhone and 3G-enabled iPads have GPS units in them. They can use the GPS to determine current altitude along with other position and velocity variables. The API used to access this information is called CoreLocation. Specifically, you would use a CLLocationManager object to send your app CLLocation objects which contain an “altitude” property.
See:
https://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocation_Class/CLLocation/CLLocation.html