Haversine World Distance Finder - Distance Between Cities


AutoCalculator.org  

World Distance Finder -
Distance Between Cities
Latitude
Latitude lines are parallel to the Equator (by definition the Equator lies at 0.0 degrees). Latitude or parallel lines run from the Equator up to +90.0 degrees North of the Equator (North Pole), and -90.0 degrees South of the Equator (South Pole).
Longitude
Lines of Longitude (Meridians) run from zero degrees at the Greenwich Prime Meridian to +180 degrees East and -180.0 degrees West.
Miles
Kilometers
Home
Bookmark and Share
Road Trip Readiness
Car Leasing
SatNav Systems
Driving in Europe
Driving In Floods
Icy Roads
Miles to Kilometers
km To Miles
mph to kph, km/h
kph, km/h to mph
Celcius to Fahrenheit
Fahrenheit to Celsius

links
privacy policy
disclaimer
about
sitemap
post comment
Latitude 1 Longitude 1 Latitude 2 Longitude 2
The longitude and latitude of Greenwich Prime Meridian, England is 0 , 51 29  N
The longitude and latitude of Hawaii, USA is 155 40 17 W, 19 59 06 N 
Longitude and Latitude of World Cities
 
The haversine formula is an equation important in navigation, giving great-circle distances between two points on a sphere from their longitudes and latitudes.

Presuming a spherical Earth with radius R (see below), and that the locations of the two points in spherical coordinates (longitude and latitude) are lon1, lat1 and lon2, lat2, then the Haversine Formula:

dlon = lon2 - lon1
dlat = lat2 - lat1
a = (sin(dlat/2))^2 + cos(lat1) * cos(lat2) * (sin(dlon/2))^2
c = 2 * atan2(sqrt(a), sqrt(1-a))
d = R * c

will give mathematically and computationally exact results. The intermediate result c is the great circle distance in radians. The great circle distance d will be in the same units as R.
Haversine Distance Formula