Finding Elevation and Direction App

The purpose of this App is to find the elevation and direction in which
a user is heading. I am planning to use compass and geolocation for
achieving the functionality. But I still have to figure out how to
include the functinality for finding the direction.