This script calculates the time spent around a specific location from your Google Timeline data.
Python3, GeoPy and tqdm installed on your system
- path to the downloaded Google Timeline data json file
- latitude of the desired location
- longitude of the desired location
- the maximum distance for the point from the location to be taken into account (in meters)
- the minimum duration for the visit to be added to the summary (in minutes)
python3 location-history-fencing.py location-history.json 47.252816 18.355761 250 30