Struct oldnav_lib::navdata::waypoint::Waypoint
[−]
[src]
pub struct Waypoint {
pub code: String,
pub name: String,
pub pos: SphericalCoordinate,
pub country: Option<Rc<Country>>,
}An ICAO waypoint
Examples
let country = Country::new("AG", "Solomon Islands"); let pos = SphericalCoordinate::from_geographic(0.0, -9.66483, 161.02166); let waypoint = Waypoint::new("ERVOS", "ERVOS", pos, Some(Rc::new(country)));
Fields
code: String
ICAO airport code
name: String
Name of airport
pos: SphericalCoordinate
Position of airport
country: Option<Rc<Country>>
Country containing this Waypoint
Methods
impl Waypoint[src]
fn new<S: Into<String>>(code: S, name: S, pos: SphericalCoordinate, country: Option<Rc<Country>>) -> Waypoint
Constructor for Waypoint.
Trait Implementations
impl WaypointInterface for Waypoint[src]
fn code(&self) -> &str
Get the ICAO code for this waypoint.
fn name(&self) -> &str
Get the name of this waypoint.
fn pos(&self) -> &SphericalCoordinate
Get the position of this waypoint.