Sanitize latitude and longitude a bit.
Implement great-circle distance calculation.
Minor reordering.
Note to self.
Must have been a typo.
Implement ndp_position_calcbearing.