#location #history #tracking #google #parse-json

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

#42 in #parse-json

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.6–2.7MB
~52K SLoC