pub trait GeoLocation {
    // Required methods
    fn geo_location(&self) -> Option<Coord<f64>>;
    fn set_geo_location(&mut self, location: Option<Coord<f64>>);
}
Expand description

The GeoLocation trait provides a method for obtaining the geographical location of a railway object.

Required Methods§

source

fn geo_location(&self) -> Option<Coord<f64>>

Returns the geographical location of the railway object as a coordinate.

source

fn set_geo_location(&mut self, location: Option<Coord<f64>>)

Sets the geographical location of the railway object

Implementors§

source§

impl GeoLocation for Train

Implements the GeoLocation trait for the Train struct.