Wrong distances between cities?

The Issue

For some cities and for countries distance between cities are wrong. How can I fix them?

Explanation

For information the script uses the Geonames databases (their most structured databases) and the Orthodromy formula (1) (one of the two existing distance calculation formulas), the second being Haversine formula (2).

For some cities and for some countries the Geonames longitude and latitude fields are not accurate (or are wrong), so the calculated distances can be also wrong. 

Why use the Orthodromy instead of the Haversine formula?
After many tests we don't recommend the haversine formula usage for many reasons. Especially, the percentage of valid distances is higher with the formula "orthodromy" than with the formula "haversine". And that is without appeal. 

Solution

To solve the distance accurate issue you have to update the cities longitude and latitude fields from the Admin panel.

Closing Words

We hope to have a high percentage of valid geographical coordinates from Geonames soon.