Trait location_history::LocationsExt
source · 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§
sourcefn average_time(&self) -> i64
fn average_time(&self) -> i64
calculate average time between locations
sourcefn find_closest(&self, time: NaiveDateTime) -> Option<Location>
fn find_closest(&self, time: NaiveDateTime) -> Option<Location>
find the closest Location to a datetime
sourcefn filter_outliers(self) -> Locations
fn filter_outliers(self) -> Locations
remove locations that are offset more than 300km/h from last location