Written by Eamonn Nugent and Brin Brody under the "Beer-ware" license.
To use, simply visit this link.
At the moment, the code is written for flights to and from KJFK. To make it work with your own airport, see Add My Airport
. Click where you would like to create an aircraft on the airport, and it will create one for you.
Zoom into the airport of your choice, and click anywhere on the map. This field defaults to KJFK. To change the default location, see the Change Default Airport
section. On the left-hand side, a flightplan should show up in a format that can be used by TWRTrainer. Copy the text when completed, and save as a .acs file anywhere you'd like. NOTE: The current source encodes for departures from KJFK. If you want to change this, see the Add My Airport
section.
This requires a Google Maps API key. Please view this link to see how to obtain one. It needs to be inserted into index.html
, on the line that contains the Maps API call, as the key
GET variable.
To change the default airport on which the map starts looking at, edit the index.html
file. In the mapOptions
object inside the myMap()
function, edit the center
property to read new google.maps.LatLng(lat,long)
, replacing the lat and long inputs with the latitude and longitude of the airport, to two decimal places.
Fill your airport code into the airport box on the page. If you have inputted an altitude, it assumes the airport is the arrival field. Otherwise, it assumes the airport is the departure field.
Currently, all aircraft are written to follow FAA PRD routing. If no routing is found through the PRD API, then the aircraft will proceed DIRECT.
Cruise altitudes, if not specified in the PRD, are randomly generated at or above FL300.
Current altitude is defined by the user in an input that is taken when they select a point on the map, or generated at the elevation of the field. To update the field elevation based off your airport, change the alt
variable setting when specified in genflight.js
.
At this time, the PRD is parsed from the FAA's CSV data and uploaded to the routes.js
in readable format. To update the PRD, either replace or supplement the contents of routes.js
with your custom routes. This is best used for the purposes of ARTCC/FIR preferred routes based on newly updated LOAs or SOPs.
At this time, the following airlines can appear:
"AAL", "DAL", "JBU", "FTA", "NKS", "UAL", "FFT", "AAL", "AAY", "HAL", "SWA", "SCX", "VRD", "EDV", "RPA"
Add to, or remove from this list in generatecallsign.js
to add or remove airlines.
In order for the webpage to not appear with a BLOCKED_BY_CLIENT error, you MUST turn any adblocking software off prior to use. This webpage is NOT optimised for mobile usage at this time.