Parser
class Parser
Parser to parse Google Location Timeline JSON to Kotlin objects.
Sample usages for parsing different JSON types:
val parser = Parser()
// ...
val bufferedSourceRecords: BufferedSource = recordsFile.source().buffer()
val records = parser.parseRecords(bufferedSourceRecords)
// ...
val bufferedSourceSemantic: BufferedSource = semanticMonthFile.source().buffer()
val semanticTimeline = parser.parseSemanticTimeline(bufferedSourceSemantic)
Content copied to clipboard
Functions
Link copied to clipboard
Parse JSON string to SemanticTimeline object.
Parse JSON buffered source to SemanticTimeline object.
Link copied to clipboard
Parse JSON string to TimelineEdits object.
Parse JSON buffered source to TimelineEdits object.