journey-to-the-moon
journey-to-the-moon copied to clipboard
Invalid file format
When I try with my 260 MB LocationHistory.json, Chrome will crash and Firefox ends up with an error.
Start aborted! Invalid file format.
Hmmm... I wonder if that is file-size related... Can you try running your file through this script which will remove all unused fields and create a significantly smaller file: https://gist.github.com/Scarygami/746494e6615218331afe
location_history_minify.py LocationHistory.json
It probably is, I got Allocation Error Size on that other project (location-history-viualizer) as error. I'm sorry I don't have Python handy right now.
I guess you could create a similar script in any other language you have at hand :)
The journey only uses latitudeE7
, longitudeE7
and timestampMs
fields, so all others can be removed, like accuracy
and especially activitys
which takes up a huge portion of the file and has a really ugly grammar error as well.
Is memory you're capable to use in Javascript really that limited? How big can a file be max?
I have no idea, would have to investigate, and maybe see if there are other/better ways to read the file.