Quick Fix due to 2024's Update - #62
Conversation
…generate maps. Also added functionality to utils.py to allow for more precise min/max date options
|
Is it worth adding support for the "activity" and "visit" location positions? This increases the data points on the map? The start position of "activity" seems to correspond with the first index of the "timelinePath" and the end position of "activity" seems to correspond with the "placeLocation" of "visit". So maybe skip activity but add support for visit? On my device the average distance between two locations in timelinePath seems to be 1.6km with a standard deviation of 5.6km. Although this distance is quite big is it worth interpolating positions between these locations to better show routes on the map? |
| for entry in dataEntry["timelinePath"]: | ||
| # print(entry) | ||
| latLon = entry["point"].replace("°", "").split(", ") | ||
| coords = (float(latLon[0]), float(latLon[1])) |
There was a problem hiding this comment.
Hi, the code didn't work for me until I changed this to coords = (float(latLon[0][:-1]), float(latLon[1][:-1])) - my JSON seems to add a degree symbol to the locations.
Describe the bug
By 8th December, users will have to have migrated their data to their local device. The data can now be downloaded via the following instructions
Solution
This is just a quick fix to keep backwards compatibility with old .JSON files and the newly formatted .JSON files which are identified using the keys in the dataset.
I've also added in additional granularity of datetime strings passed in min/max date for my own convenience