getDistance getHeading impl