the haversine formula is used to calculate the great-circl earth distance between two lat/lon coordinate pairs in decimal degrees.