pub struct ResolvedRoute {
pub segments: Vec<ResolvedRouteSegment>,
pub name: String,
}Expand description
A complete flight route decomposed into segments with geographic and altitude/speed constraints.
Represents a resolved or enriched route with waypoints and metadata about altitude and speed restrictions at each segment. Routes are typically populated by resolving field15 routes through the EUROCONTROL database.
§Fields
segments: Ordered list of route segments from origin to destinationname: Route identifier or description (e.g., “Q400 RCKT2 SOLEN”)
Fields§
§segments: Vec<ResolvedRouteSegment>§name: StringImplementations§
Source§impl ResolvedRoute
impl ResolvedRoute
Sourcepub fn from_db(route: &Route, db: &AirwayDatabase) -> Self
pub fn from_db(route: &Route, db: &AirwayDatabase) -> Self
Resolve a route from the database.
Sourcepub fn lookup(name: &str, db: &AirwayDatabase) -> Vec<Self>
pub fn lookup(name: &str, db: &AirwayDatabase) -> Vec<Self>
Lookup routes by their name from the database.
Sourcepub fn contains(&self, point: &ResolvedPoint) -> bool
pub fn contains(&self, point: &ResolvedPoint) -> bool
Check if the route contains the specified point.
Sourcepub fn between(
&self,
start: &ResolvedPoint,
end: &ResolvedPoint,
) -> Option<ResolvedRoute>
pub fn between( &self, start: &ResolvedPoint, end: &ResolvedPoint, ) -> Option<ResolvedRoute>
Find a sub-route between two points, if it exists. The implementation uses a depth-first search (DFS) algorithm to find a path between the start and end points within the route segments.
Trait Implementations§
Source§impl Clone for ResolvedRoute
impl Clone for ResolvedRoute
Source§fn clone(&self) -> ResolvedRoute
fn clone(&self) -> ResolvedRoute
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedRoute
impl Debug for ResolvedRoute
Auto Trait Implementations§
impl Freeze for ResolvedRoute
impl RefUnwindSafe for ResolvedRoute
impl Send for ResolvedRoute
impl Sync for ResolvedRoute
impl Unpin for ResolvedRoute
impl UnsafeUnpin for ResolvedRoute
impl UnwindSafe for ResolvedRoute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more