Scarygami / location-history-json-converter

Convert the Location History JSON File from Google Takeout into a useable format
Apache License 2.0
468 stars 117 forks source link

Calculate distance #34

Open bdyzel opened 4 years ago

bdyzel commented 4 years ago

I love your script, really well written, but I don't see or understand how the distance between two locations is calculated, also the location names aren't saved. I'm hoping to achieve something like this: 2020-08-10_21h05_46

Scarygami commented 4 years ago

Distance is calculated (for gpxtracks) using this formula: https://github.com/Scarygami/location-history-json-converter/blob/master/location_history_json_converter.py#L83

I haven't looked at a takeout file in a while, is the location name actually part of this file?