Description Usage Arguments Value Examples
This function determines the shortest route between two points (navfixes/navaids)
1 2 |
aptFrom |
Departure airport (4-letter ICAO code). |
aptTo |
Destination airport (4-letter ICAO code). |
fixFrom |
Initial departure navfix (after SID procedure). If not supplied manually, the navfix nearest to the departure airport will be chosen automatically, using |
fixTo |
Final destination navfix (before STAR procedure). If not supplied manually, the navfix nearest to the destination airport will be chosen automatically, using |
fixes |
Optional vector of intermediate navfixes. Use these to speed up the algorithm,
or to manually adjust the desired route. If |
limitArc |
If TRUE, only search points at an angle of ±90 degrees towards the destination point in order to speed up the algorithm. |
narrowArc |
If TRUE (and also limitArc==TRUE), search at a narrower angle of ±45 degrees towards the destination point. |
Returns a flight plan stored on a data.frame with the following columns:
The name each point (airport/navaid/navfix) in the flight plan.
Latitude of the point.
Longitude of the point.
Full name
Radio frequency (for navaids only).
Reception range (for navaids only).
Elevation (for navaids or airports).
Deviation (for VOR stations).
Magnetic declination at the point.
Distance (in km, up to the next point in the plan).
Course (true) towards the next point.
Course (magnetic) towards the next point.
Airway identifier for the following segment (up to the next point in the plan), or SID/STAR.
Base flight level for the following segment (up to the next point in the plan).
Top flight level for the following segment (up to the next point in the plan).
Alternative airway for the following segment, along with its permitted flight level range.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Fly from Athens to Thessaloniki
plan1 <- planRoute("LGAV", "LGTS")
print(plan1)
# Manually choose appropriate departure and approach fixes
# (by referring to the relevant approach plates)
plan2 <- planRoute("LGAV", "LGTS", fixFrom="ABLON", fixTo="LEKPO")
print(plan2)
# Fly from Athens to Innsbrück
plan3 <- planRoute("LGAV", "LOWI", "KOR", "BRENO")
# Follow a different route, via Thessaloniki and Belgrade
plan4 <- planRoute("LGAV", "LOWI", "ABLON", "RTT", fixes=c("TSL","ORVAN"))
# Divert a bit from the ICAO airway (OMIRO -> SKP -> BAMOS -> AGISA)
# and fly over PELAS instead, i.e. over Alonissos instead of Skopelos island.
plan5 <- planRoute("LGAV", "LOWI", "ABLON", "RTT",
fixes=c("OMIRO", NA, "PELAS", NA, "AGISA", "TSL","ORVAN"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.