made measuring type more flexible (prepared for adding altitude at some
point)