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 segments = "both" #80

Merged
merged 7 commits into from Aug 14, 2023
Merged

Add segments = "both" #80

merged 7 commits into from Aug 14, 2023

Conversation

mem48
Copy link
Contributor

@mem48 mem48 commented Aug 14, 2023

Option to return both routes and segments as a list of two data frames rather than either-or choice

See nptscot/npt#243

@Robinlovelace
Copy link
Collaborator

🔥

Copy link
Collaborator

@Robinlovelace Robinlovelace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some examples under @examples.

@@ -196,7 +198,8 @@ batch = function(

get_routes = function(url, desire_lines = NULL, filename, directory,
cols_to_keep = c("id", "name", "provisionName", "distances", "time",
"quietness", "gradient_smooth")) {
"quietness", "gradient_smooth"),
segments = TRUE) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sensible default.

@mem48
Copy link
Contributor Author

mem48 commented Aug 14, 2023

I think this is now working I had to make this change to get it working which I think is a bug in the current version

6110b3e

@Robinlovelace Robinlovelace merged commit 8d85f51 into cyclestreets:master Aug 14, 2023
2 checks passed
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.

None yet

2 participants