From coordinates to distance
The calculation converts two coordinate pairs into one central angle, then into a surface distance.
- Convert latitude and longitude to radians.
- Use the Haversine formula to find the central angle.
- Multiply by a mean Earth radius of 6,371.0088 km.
- Convert the same distance to miles and round the display.
What the input represents
- Input
- One reviewed latitude and longitude near each city center.
- Method
- A reproducible great-circle calculation.
- Limit
- No road, terrain, border, or transport network is modeled.