google_takeout: add semantic location history (#278)

* google_takeout: add semantic location history
This commit is contained in:
seanbreckenridge 2023-03-04 10:36:10 -08:00 committed by GitHub
parent a4c713664e
commit 9d231a8ea9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 96 additions and 0 deletions

View file

@ -89,6 +89,14 @@ class location:
export_path: Paths = ''
accuracy: float
class google_takeout_semantic:
# a value between 0 and 100, 100 being the most confident
# set to 0 to include all locations
# https://locationhistoryformat.com/reference/semantic/#/$defs/placeVisit/properties/locationConfidence
require_confidence: float = 40
# default accuracy for semantic locations
accuracy: float = 100
from my.core.compat import Literal
class time: