5
edits
Legoboyvdlp (talk | contribs) |
|||
Line 76: | Line 76: | ||
; path() : Returns a vector of hashes containing lat and lon variables. These compromise a curved path for long non straight legs. | ; path() : Returns a vector of hashes containing lat and lon variables. These compromise a curved path for long non straight legs. | ||
; courseAndDistanceFrom(coord) : Return vector with true course and distance. Coord is a geo.Coord. | ; courseAndDistanceFrom(coord) : Return vector with true course and distance. Coord is a geo.Coord. | ||
; airport() : Return airport ghost associated with this leg, if any. Leg waypoint must be an airport or runway. | |||
; navaid() : Return navaid ghost associated with this leg, if any. Leg waypoint must be a navaid (VOR/NDB/DME/ILS). | |||
; runway() : Return runway ghost associated with this leg, if any. Leg waypoint must be a runway. | |||
; parents : Nasal parents. | ; parents : Nasal parents. | ||
; wp_parent: Will return you the owning route-structure of the WP - this could be an airway, procedure, or the flightplan if the waypoint doesn’t belong to a route structure. | ; wp_parent: Will return you the owning route-structure of the WP - this could be an airway, procedure, or the flightplan if the waypoint doesn’t belong to a route structure. | ||
Line 86: | Line 89: | ||
; leg_bearing : Returns the bearing along the leg. | ; leg_bearing : Returns the bearing along the leg. | ||
; distance_along_route : Return the total distance laterally along the route to the beginning of the leg. | ; distance_along_route : Return the total distance laterally along the route to the beginning of the leg. | ||
; hold_count : If the leg is a hold, return the remaining number of laps to be flown. For non-hold legs, and for hold legs that have been completed, it will be 0. Setting this to a positive value will turn the leg into a hold. Note that as of version 2020.3.13, there is no way of converting a hold back into a regular, non-hold leg. | |||
For speed restrictions these types can be used: | For speed restrictions these types can be used: |
edits