Type Definition location_history::Locations
source · Expand description
group of locations
Trait Implementations§
source§impl LocationsExt for Locations
impl LocationsExt for Locations
source§fn average_time(&self) -> i64
fn average_time(&self) -> i64
calculate average time between locations
source§fn find_closest(&self, time: NaiveDateTime) -> Option<Location>
fn find_closest(&self, time: NaiveDateTime) -> Option<Location>
find the closest Location to a datetime
source§fn filter_outliers(self) -> Locations
fn filter_outliers(self) -> Locations
remove locations that are offset more than 300km/h from last location