#location #history #google #tracking

location_history

Parse Google LocationHistory.json

5 releases

0.2.2 Mar 4, 2020
0.2.1 Dec 6, 2018
0.2.0 Apr 27, 2018
0.1.1 Apr 25, 2018
0.1.0 Sep 19, 2017

#46 in #location

31 downloads per month

MIT/Apache

8KB
138 lines

Use Google location history files in rust

Getting started

extern crate location_history;

use location_history::LocationsExt;

let mut contents = String::new();
File::open(file).unwrap().read_to_string(&mut contents).unwrap();
let locations = location_history.deserialize(&contents).filter_outliers();
for location in locations {
    println!("{:?}", location);
}

lib.rs:

Library to parse google location history data

Dependencies

~1.7–2.8MB
~54K SLoC