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 --bbox CLI param as a shortcut #18

Merged
merged 3 commits into from Sep 3, 2022
Merged

Conversation

hugovk
Copy link
Collaborator

@hugovk hugovk commented Sep 2, 2022

It's a bit tedious to enter four params and values on the command line when creating a map:

stravavis activities --lon_min 23.516665 --lat_min 60.000467 --lon_max 26.390877 --lat_max 61.360291

This PR adds a --bbox shortcut for those, that takes a bounding box of comma-separated values of lon_min, lat_min, lon_max, lat_max:

stravavis activities --bbox 23.516665,60.000467,26.390877,61.360291

It's quite easy to find bounding boxes online, for example: http://bboxfinder.com/#60.000467,23.516665,61.360291,26.390877


I also noticed that these lat/lon values are not actually passed from the CLI to the plotting function, and neither are alpha or linewidth, so let's fix that too :)


Finally, bump some GitHub Actions versions for the CI.

@hugovk hugovk added the enhancement New feature or request label Sep 2, 2022
@marcusvolz marcusvolz merged commit ebb5fa2 into marcusvolz:main Sep 3, 2022
@marcusvolz
Copy link
Owner

Thanks!

@hugovk hugovk deleted the map-args branch September 3, 2022 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants