As Allezhopper said the edge 500 has a barometric altimeter.
I never enable the corrections and have no problem.
Also with these devices take no notice of the Calories used unless you
have the Heart Rate Monitor as well .
Calories read as double when not using heart rate monitor.
I had to cut down on me cakes !