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

Improve usability around region/subregion #201

Merged
merged 6 commits into from
Nov 11, 2021
Merged

Improve usability around region/subregion #201

merged 6 commits into from
Nov 11, 2021

Conversation

rustprooflabs
Copy link
Owner

Issue reported in #198 can't be resolved by improving the file name handling, at least not easily. The issue stems from the decision to tightly couple to Geofabrik's download server. This PR raises an error when a slash is detected in the region name and subregion is none, in these cases the portion after the last / should be in the subregion.

This also updates the documentation to add a section about the region/subregion, and show this example. I'm sure there's room for improvement in the wording, this is a quick start to improve this.

@rustprooflabs rustprooflabs added the documentation Improvements or additions to documentation label Nov 11, 2021
@rustprooflabs rustprooflabs added this to the 0.4.1 milestone Nov 11, 2021
@rustprooflabs rustprooflabs marked this pull request as ready for review November 11, 2021 21:03
@rustprooflabs
Copy link
Owner Author

Created validate_region_inputs() to validate the combination of region, subregion and input_file.

@rustprooflabs rustprooflabs merged commit d905d6e into dev Nov 11, 2021
@rustprooflabs rustprooflabs deleted the check-region branch November 11, 2021 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant