Airport App (Testing 1, 2, 3 ...)
To find the distance in miles between two airports, enter two U.S. cities below and select the airport codes from the lists that appear.
- NewYork,NY-Kennedy JFK
- LosAngeles,CA LAX
- Chicago,IL-O'Hare ORD
Data from opendata.socrata.com
(latitudes and longitudes) as well as airportcodes.org
(city to airport code mapping).
Distance formula from here
Code used the Django forms docs
as well as this tutorial: AJAX Autocomplete Search With Django and jQuery