Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convertion type geojson #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

mbolli
Copy link

@mbolli mbolli commented Aug 14, 2021

Not fully tested yet, open for feedback.

I tested it with a 1 GB json file with the command python3.9 location_history_json_converter.py -f geojson -i -s 2021-05-01 Takeout/Location\ History/Location\ History.json test.geojson and it does what I need atm.

Possible optimizations:

  • Remove geojson dependency
  • Remove the need for the geojson_data variable where even with the -i option all coordinates are stored before writing them in _write_footer()
  • Add feature like in converter type gpxtracks where a new track is created if coordinates differ by some measure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant