This is a script to check and see if you and your __________ have crossed paths before using Google location data.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
crossing_paths.py

README.md

crossing_paths

This is a script to check and see if you and somebody else have crossed paths before using Google location data. It is very much a work in progress, and only a side project for me.

Instructions:

  1. Go to Google Takeout (https://takeout.google.com/settings/takeout) and download your and the other person's location history.
  2. Download location history converter (https://github.com/Scarygami/location-history-json-converter)
  3. Convert the json files into CSV files using the following command: python location_history_converter.py 'your_history.json' -o 'your_history.csv' -f 'csv'
  4. Install pygmaps-ng (https://github.com/Permafacture/pygmaps-ng/blob/master/README.md), geopy, pandas, and numpy.
  5. Run the script with this command: python crossing_paths.py 'your_history.csv' 'other_persons_history.csv' 30 1 1 (resample your data to 30 minute intervals for speed, set the thresholds of crossing paths to 1 mile and 1 hour)
  6. Click on both of the 'Crossing Paths' checkboxs when the map opens.

A map should open with red and black pins indicating points where you and the other person have crossed paths based on the time/distance threshold you set. You can click on the points to get the date/time for that location.