Skip to content

further avoid steps for bike? #2803

Closed

Activity

  1. otbutz commented on Apr 24, 2023

    @otbutz
    Contributor

    In determining the priority rating, we seem to ignore steps so that the lower average speed is the only incentive to choose a different route. As these sections tend to be small, a 2km/h speed limit might not be enough to force a different routing decision.

    I just skimmed over the code but this part looks a bit sketchy:

    // Until now we assumed that the way is no pushing section
    // Now we check that, but only in case that our speed computed so far is bigger compared to the PUSHING_SECTION_SPEED
    if (speed > PUSHING_SECTION_SPEED
    && (way.hasTag("highway", pushingSectionsHighways) || way.hasTag("bicycle", "dismount"))) {

    So if speed == PUSHING_SECTION_SPEED we wouldn't lower the limit for highway:steps from 4km/h to 2km/h?

    This comment referencing #634 also seems to be outdated?

    final int CYCLEWAY_SPEED = 18; // Make sure cycleway and path use same speed value, see #634
    setHighwaySpeed("cycleway", CYCLEWAY_SPEED);
    setHighwaySpeed("path", 10);
    setHighwaySpeed("footway", 6);

    Basically we still do this, but the logic for it is further down, which makes the comment and the pseudo-constant pretty useless.

  2. ratrun commented on Apr 24, 2023

    @ratrun
    Contributor

    I'm pretty sure that the problem comes from the bicycle=designated tagging of the 70m steps. I added a test for it:

        @Test
        public void testSteps() {
            ReaderWay way = new ReaderWay(1);
            way.setTag("highway", "steps");
            assertPriorityAndSpeed(SLIGHT_AVOID, 2, way);
    
            way.setTag("bicycle", "designated");
            assertPriorityAndSpeed(VERY_NICE, 18, way);
        }
    

    We need to apply a change such that the second test does not pass any longer. I'm going to provide a PR and also change the CYCLEWAY_SPEED code issue mentioned by @otbutz.

  3. otbutz commented on Apr 24, 2023

    @otbutz
    Contributor

    I'm pretty sure that the problem comes from the bicycle=designated tagging of the 70m steps.

    That one screams "tagging mistake". The steps - if they even exist - lead up to a cycleway. Maybe an artifact from splitting the way?

    I would argue that we should limit the speed on steps in any case. You can't carry your bike any faster even if the way would be correctly tagged with bicycle:designated (which is highly unlikely).

  4. ratrun commented on Apr 24, 2023

    @ratrun
    Contributor

    The PR fixes the originally discovered case and by chance also the MTB example from @mprins. I changed the speed for steps for the MTB profile because we should assume that steps are pushing sections even for MTBs. And why would somebody push the bicycle on a MTB faster compared to the other two bike profiles?

    @karussell: I also had a looks on your other real world examples but do not quite understand the problems these should illustrate.

  5. karussell commented on Apr 24, 2023

    @karussell
    MemberAuthor

    That one screams "tagging mistake". The steps - if they even exist - lead up to a cycleway. Maybe an artifact from splitting the way?

    Yeah, let's ignore this original example as this seems to be a tagging problem.

    @karussell: I also had a looks on your other real world examples but do not quite understand the problems these should illustrate.

    Sorry, the first one was an incorrect link. This is the correct and uses a step although it could avoid steps with a small detour?

    The second one uses steps and could avoid them but footway probably makes it harder to choose for GH.

    The third one again uses steps for no reason and could use this tiny detour again a footway but with allowed bike.

    The fourth one again uses steps to avoid the footway alternative.

    (see the route hints in the route result to highlight steps or footways easily and quickly)

    And why would somebody push the bicycle on a MTB faster compared to the other two bike profiles?

    Going down the steps a real MTB rider could avoid getting of the bike ;)

  6. added a commit that references this issue on Apr 24, 2023
    0d56324
  7. ratrun commented on Apr 25, 2023

    @ratrun
    Contributor

    I played around with the priority classification for highway=steps using the other real world examples above from @karussell. Even the worst classification of the steps with REACH_DESTINATION only solves example 3 and 4, but not 1 and 2. The problem with the example 3 and 4 is that the highway=steps segment is too short. As this will be the case with steps in most circumstances I think that we should implement the priorisation with assigning the REACH_DESTINATION. I'm going to update the PR accordingly.

  8. ratrun commented on Apr 25, 2023

    @ratrun
    Contributor

    With the change for assigning highway=steps to priority REACH_DESTINATION our built in Krems testcase changes significantly from
    ScreenshotCurrent

    into

    ScreenshotAfterChanges

    I'm not sure if this significant increase in the distance from 6.9km to 9.3km is worth the avoidance of 17 meters steps. What do you think?

  9. karussell commented on Apr 25, 2023

    @karussell
    MemberAuthor

    Yeah, this is a good examples where we want to accept steps. Tricky :)

    So for now can you try to use a higher PriorityCode and then we have to accept the failure of some of the above cases until we have a better idea like an absolute offset of seconds that would make avoiding short steps possible (and would help for other cases like ferries too)

  10. ratrun commented on Apr 26, 2023

    @ratrun
    Contributor

    After some fine tuning and running into further failed testcases in Monaco I consider the priority classification "BAD" as the best compromise for highway=steps. Please check the update in PR #2804.

  11. added a commit that references this issue on May 8, 2023
    6747609
  12. added a commit that references this issue on Jun 21, 2023
    b3825b7
  13. added a commit that references this issue on Oct 27, 2023
    7a0960e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions