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

Remove cycleroute always having access granted #471

Merged

Conversation

Totorrr
Copy link
Contributor

@Totorrr Totorrr commented Oct 21, 2022

Some bicycle routes can have portions which are not accessible.

Potential reasons for this:

  • temporary construction work on the ways (sometimes for months),
  • local access change without simultaneous update of bicycle route relation
    (lack of mapper's knowledge or lack of time to redefine an updated route),
  • ...

This branch changes fastbike & trekking profiles so that being on a cycle
route does not automatically mean "access granted" for bicycles. The normal
access checkings are used instead.

However, the accesspenalty is set to 15 if the no-access way belongs to such a
route, so that the way is not completely forbidden if there is no other
alternative unavailable.

Some bicycle routes can have portions which are not accessible.

Potential reasons for this:
 - temporary construction work on the ways (sometimes for months),
 - local access change without simultaneous update of bicycle route relation
   (lack of mapper's knowledge or lack of time to redefine an updated route),  
 - ... 

This commit changes the trekking profile so that being on a cycle route does 
not automatically mean "access granted" for bicycles. The normal access 
checkings are used instead.

However, the accesspenalty is set to 15 if the no-access way belongs to such a 
route, so that the way is not completely forbidden if there is no other 
alternative unavailable.
Some bicycle routes can have portions which are not accessible.

Potential reasons for this:
 - temporary construction work on the ways (sometimes for months),
 - local access change without simultaneous update of bicycle route relation
   (lack of mapper's knowledge or lack of time to redefine an updated route),  
 - ... 

This commit changes the fastbike profile so that being on a cycle route does 
not automatically mean "access granted" for bicycles. The normal access 
checkings are used instead.

However, the accesspenalty is set to 15 if the no-access way belongs to such a 
route, so that the way is not completely forbidden if there is no other 
alternative unavailable.
@Totorrr Totorrr temporarily deployed to BRouter October 21, 2022 22:55 Inactive
@zod
Copy link
Collaborator

zod commented Oct 23, 2022

Do you have an example where this behavior would help?

@Totorrr
Copy link
Contributor Author

Totorrr commented Jan 5, 2023

@zod yes, here:

https://brouter.de/brouter-web/#map=15/48.9020/2.3811/cyclosm&lonlats=2.377725,48.90832;2.383931,48.895324

The way that is used by brouter (along the east side of the canal) is not actually usable (and it is tagged as such), because it has construction work (duration of several month, preparing for the Olympic Games to come I believe).

However, because the way belongs to a cycle route relation, brouter suggests this route with low cost, even though it is unusable.

Sorry for the late answer.

@afischerdev
Copy link
Collaborator

I haven't heard of @zod for a while. If you don't mind I'll merge the PR, I like the idea to block this ways not totally.
But what do you think of a change also on the other profiles?

@afischerdev afischerdev merged commit b7842e1 into abrensch:master Apr 2, 2023
@Totorrr Totorrr deleted the profiles-no-total-access-cycleroutes branch June 12, 2023 21:49
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 this pull request may close these issues.

3 participants