
I occasionally read Quora for fun. I recently stumbled upon the following question:
What are the two closest airports to each other in the world?
The very first answer to the question I saw was from Kevin Lin who said:
For fun, I wrote a Python script to do the following:
- Take the list of airports from http://www.airportcodes.org/ and remove all the airports listed as “Bus service” or “Rail service” or “Van service” or “All airports”.
- Plug the remaining airports into http://www.gpsvisualizer.com/geo...to get their GPS coordinates.
- Finally, compute the distances between pairs of airports by plugging their GPS coordinates into the haversine formula http://stackoverflow.com/questio...
Download Article:
Article Section:
COLUMNS
;login: issue: