Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

moonman239

Cancelled
Original poster
Mar 27, 2009
1,541
32
I'm building an app that will calculate the sea-level pressure at the user's current location. I use Core Motion to get the current barometric pressure reading, and Core Location to get the user's current altitude.

Does the Core Motion altitude calculation account for weather changes? If so, does it get its sea level pressure data from online?
 
You probably figured this out already, but Core Motion Altitude is relative and Core Location Altitude us absolute.

Meaning, CMAltitude tells you your relative altitude at your current location compared with your previous location.

CLAltitude gives you your distance above sea level at your current location.

I haven't seen anything in the docs yet about barometric pressure readings although I thought I heard something in the keynote about the new iPhone having a barometer. Did I imagine that? Or maybe I'm confusing it with a rumor I heard?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.