This article was written for our astronomy API service, Radiant Drift, but it covers concepts useful for TPE users too.
It describes the distinction between the observer’s elevation above sea level vs the observer’s elevation above the horizon, and how they affect rise and set times and directions.