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 new max_bike_dist #174

Closed
rafapereirabr opened this issue Jun 23, 2021 · 9 comments · Fixed by #175
Closed

Add new max_bike_dist #174

rafapereirabr opened this issue Jun 23, 2021 · 9 comments · Fixed by #175
Labels

Comments

@rafapereirabr
Copy link
Member

Our routing and accessibility functions have a max_walk_dist parameter. I was wondering whether if would make sense to include also a max_bike_dist parameter. What do you think?

@mvpsaraiva
Copy link
Collaborator

I agree it would be useful for calculating trips that combine bike with public transport. Currently, we set R5's maxBikeTime parameter to max_trip_duration. The problem with that approach is that we cannot force someone to bike a short distance to a transit station and then catch a train, for example. The traveller will always try to cycle for as long as max_trip_duration allows.

@rafapereirabr
Copy link
Member Author

The problem with that approach is that we cannot force someone to bike a short distance to a transit station and then catch a train, for example. The traveller will always try to cycle for as long as max_trip_duration allows.

Even if it would be faster to cycle to the nearest train station and then get to train to the final destiantion (comparted to cycling the whole way) ?

@mvpsaraiva
Copy link
Collaborator

Even if it would be faster to cycle to the nearest train station and then get to train to the final destiantion (comparted to cycling the whole way) ?

If it's faster to take the train, then the traveller will take it. What we can't do now is force the traveller to only consider train stations that are a certain distance away from home.
I think this parameter is quite useful, and I will add it to the jar soon.

@rafapereirabr
Copy link
Member Author

Even if it would be faster to cycle to the nearest train station and then get to train to the final destiantion (comparted to cycling the whole way) ?

If it's faster to take the train, then the traveller will take it. What we can't do now is force the traveller to only consider train stations that are a certain distance away from home.
I think this parameter is quite useful, and I will add it to the jar soon.

Ok, I understand it. This is exactly how we would expect R5 or other routing enginge to behave fot that matter.

@rafapereirabr
Copy link
Member Author

Setting this issue as priority, to be incorporated in the next package release.

mvpsaraiva added a commit that referenced this issue Jun 29, 2021
@mvpsaraiva
Copy link
Collaborator

I've added this parameter to the jar and updated the detailed_itineraries(), travel_time_matrix() and accessibility() functions accordingly. I think the only thing missing now is to add this parameter to the tests.

mvpsaraiva added a commit that referenced this issue Jun 29, 2021
…trix()`, and `detailed_itineraries()` tests. Issue #174
@mvpsaraiva
Copy link
Collaborator

I think the only thing missing now is to add this parameter to the tests.

I've added the tests now.

@rafapereirabr
Copy link
Member Author

This is great. Thanks! I've updated the NEWs file and closed this issue in my last commit.

@rafapereirabr
Copy link
Member Author

This issue should be closed once we merge the dev and master branches

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

Successfully merging a pull request may close this issue.

2 participants