Trait Point

Source
pub trait Point: Debug {
    // Required methods
    fn lat(&self) -> f64;
    fn lng(&self) -> f64;
}
Expand description

Point contains accessors for a coordinate’s latitude (lat) and longitude (lng).

Note: Point is not implemented for &[f64; 2] due to geojson’s format being [longitude, latitude] rather than [latitude, longitude] which is expected by this algorithm.

Required Methods§

Source

fn lat(&self) -> f64

Source

fn lng(&self) -> f64

Implementations on Foreign Types§

Source§

impl Point for (f64, f64)

Source§

fn lat(&self) -> f64

Source§

fn lng(&self) -> f64

Implementors§