About a month ago I started playing around with Copilot and discovered that it likes to code. Eventually this happened, and Jim graciously agreed to host it on TravelMapping:
https://tmairports.teresco.org/Here's how it works:
The current output is simple: symbols at airports worldwide that show a user's visits to that airport. Users who have departed an airport will see a green upward-pointing triangle, and users who have arrived at an airport will see one in red pointing downward. Airports where users experienced a layover (with or without a plane change) appear as a blue circle surrounding the triangles.
How to create a mapMaps are generated from "alist" files submitted by users via GitHub or email, however they normally submit their travel updates. The map shows all airports the user has visited: arrivals, departures, and layovers (refueling stops are considered layovers for now).
The filename should be [username].alist. In the file, user data should use the following format:
[IATA Airport Code] [N] [N]* [N]*
*the third and fourth fields are optional.
N can be any of the following codes: A (for arrival), D (for departure), and L (for layover).
Example file lines:Code | Meaning |
ATL A D L | Traveler arrived at and departed from Atlanta, and had a layover there. |
LAX A D | Traveler arrived at and departed from Los Angeles. |
ORD L | Traveler had a layover at Chicago O'Hare, but no arrival or departure. |
Each airport should be on a separate line. The order of the A, D, and L does not matter. The file should be submitted via a GitHub pull request at TravelMapping/AirportData/air/data (email submissions will be available soon but are not currently supported). Once the file is merged, their map should update automatically within a few minutes. Users can locate their maps by choosing their username from the drop-down menu.
There is only one option for the map currently (show all airports, or only visited airports).
More airports will be added. If a user submits an .alist with an airport not currently in airports.csv, that airport will be flagged automatically, which will prompt me to add it to the database. So please include all airports you've visited in your .alist.
Hovering over an airport (or clicking on the icon) will identify it with the name pulled from a list stored in airports.csv.
Known issues:- User is not persistent. When loading the map, it will default to the first username in the list.
- After a user's .alist is updated, the browser cache must be cleared manually in order to see the updated map.
- Many airports are missing. So far only airports visited by at least one user have been added.
- Airport placement is inconsistent. Some icons are centered on runways, some on terminals, and some at other positions on airport property. Many locations were automatically generated using Copilot.
- The location defaults to the U.S., but it's worth exploring a default location personalized to a user's visited airports.
Future plans and items for discussion:- A user page with a list of airports visited will be added eventually.
- A list of users who have visited an airport may also be added.
- Additional basemaps may become available.
- The map currently shows any airports requested by users. This may become difficult to maintain. A decision will need to be reached regarding which airports should be included. Public airports with scheduled commercial flights are the main scope for the project, but "public", "scheduled", and "commercial" may need to be clarified.
- Other information (such as city, state, and/or country) may be added to the data identifying airports.
I hope users find this useful. Let me know if you have any questions or ideas, and please make suggestions for improvements and related pages (user page, rankings, etc). Or share your thoughts at GitHub:
https://github.com/TravelMapping/AirportData