Skip to content

Kotlin library for parsing unencrypted Google Location History (Timeline) data exported from your device.

License

Notifications You must be signed in to change notification settings

hossain-khan/kgeo-device-timeline

Repository files navigation

Google Device Timeline JSON Parser

Parses Google's Location History Timeline JSON data exported from device.

Usage

val parser = Parser()
val file = File("timeline.json")
val timeline = parser.parse(file)

println("Parsed timeline data with ${timeline.semanticSegments.size} segments")
println("Parsed timeline data with ${timeline.rawSignals.size} signals")
println("Parsed timeline data with ${timeline.userLocationProfile.frequentPlaces.size} frequent places")

Output

Parsed timeline data with 51902 segments
Parsed timeline data with 7865 signals
Parsed timeline data with 2 frequent places

Related Resources