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.
- Go to Google Takeout (https://takeout.google.com/settings/takeout) and download your and the other person's location history.
- Download location history converter (https://github.com/Scarygami/location-history-json-converter)
- 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'
- Install pygmaps-ng (https://github.com/Permafacture/pygmaps-ng/blob/master/README.md), geopy, pandas, and numpy.
- 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)
- 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.