Added latitude and longitude calculations
Changed references to altitude to use an altitude getter function