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

Exporting Route Data #12

Merged
merged 4 commits into from
Sep 16, 2022
Merged

Exporting Route Data #12

merged 4 commits into from
Sep 16, 2022

Conversation

ConstantinB9
Copy link
Contributor

Implements a method for downloading route data, similar to activity data downloads.

I've opted to "reuse" the DataFormat enum for simplicity.
Since route downloading only supports the formats gpx and tcx, the originial is statically mapped to gpx

Closes #11

uwuou added 3 commits September 14, 2022 22:50
also fixes documentation, since the stravalibs `BatchedResultsIterator` does not support indexed access (anymore?)
@ConstantinB9 ConstantinB9 changed the title Exporting Route Data #11 Exporting Route Data Sep 14, 2022
 - Revert version bump (will do in a separate commit)
 - Tweaked export examples in the readme to use `writelines()` since
   it's much more compact
 - Reduced code duplication in `get_activity_data` and `get_route_data`
   by pulling mostly-common code into a function and making them both
   return an `ExportFile` instead of bespoke types for each.
@pR0Ps
Copy link
Owner

pR0Ps commented Sep 16, 2022

This is great, thank you!

@pR0Ps pR0Ps merged commit f879182 into pR0Ps:master Sep 16, 2022
@pR0Ps
Copy link
Owner

pR0Ps commented Sep 16, 2022

Released in v0.0.7

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.

Export Route Data
2 participants