The rfgfs package allows planning a route between two airports, using the airport, airway, navaid and navfix data that ship with FlightGear. These data have been parsed into .RData, are included with the package internally, and can be retrieved with the function flightData
. The main workhorse of the package is the function planRoute
; this returns a full flight plan as a data.frame, and this can be further written to a kml file (that can be opened with Google Earth or other kml viewer) using function makeKml
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.