pub trait LocationsExt {
    fn average_time(&self) -> i64;
    fn find_closest(&self, time: NaiveDateTime) -> Option<Location>;
    fn filter_outliers(self) -> Locations;
}
Expand description

methods used for locations

Required Methods§

calculate average time between locations

find the closest Location to a datetime

remove locations that are offset more than 300km/h from last location

Implementors§