diff --git a/my/location/google_takeout.py b/my/location/google_takeout.py index 80b31cb..a1c1403 100644 --- a/my/location/google_takeout.py +++ b/my/location/google_takeout.py @@ -23,7 +23,12 @@ def locations() -> Iterator[Location]: for g in events(): if isinstance(g, GoogleLocation): yield Location( - lon=g.lng, lat=g.lat, dt=g.dt, accuracy=g.accuracy, elevation=None + lon=g.lng, + lat=g.lat, + dt=g.dt, + accuracy=g.accuracy, + elevation=None, + datasource="google_takeout", ) diff --git a/my/location/gpslogger.py b/my/location/gpslogger.py index 95f4474..0cd56b3 100644 --- a/my/location/gpslogger.py +++ b/my/location/gpslogger.py @@ -65,6 +65,7 @@ def _extract_locations(path: Path) -> Iterator[Location]: accuracy=config.accuracy, elevation=point.elevation, dt=datetime.replace(point.time, tzinfo=timezone.utc), + datasource="gpslogger", )