Your iPhone, if it’s new enough, knows your elevation. You can find out how high up you are by simply asking Siri. There are various ways to phrase it, but the way I do it is “What’s my elevation?”
Want to know your elevation? Just ask Siri. This works on phones from the iPhone 6 and newer as they have a barometer to measure pressure.