Skip to content

Simple tool for extracting the amount of days you have been close to a given location from Google Maps Timeline's Takeout

Notifications You must be signed in to change notification settings

FlorianLoch/days-in-office

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

days-in-office

days-in-office is a small utility to calculate the amount of days you have been in office.

The input used is the takeout from Google Maps Timeline (in German "Standortverlauf/Zeitachse"). You can request it from Google here: https://takeout.google.com/settings/takeout

For this tool you only need the location history JSON file, i.e. the Google Maps Timeline export. Of course, no data leaves your machine, as the tool only reads the JSON files and processes them locally.

Obviously, "office" could be any location - it simply is my use case in times of working from home.

Once downloaded extract the archive, install the tool and run it.

Installation:

go install github.com/florianloch/days-in-office@latest

Usage:

days-in-office \
  -start-date "2023-01-02T00:00:00Z" \
  -end-date "2023-12-31T12:59:59Z" \
  -input-dir "./Semantic Location History/" \
  -tolerance 100 \
  -latitude 48.1794935434762 \
  -longitude 11.585803728704384 \
  -print-dates

tolerance is given in meters and defines the radius around the given coordinates in which the tool will consider a location to be the given target location.

About

Simple tool for extracting the amount of days you have been close to a given location from Google Maps Timeline's Takeout

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages