Skip to content

foot routing of ordinary pedestrians over ways tagged mtb:scale really wanted? #3050

Closed

Description

@hungerburg

GraphHopper does not route ways that have sac_scale > hiking in the stock foot profile. There is a hiking profile for this.

Recent coverage of mtb:scale prompted me to run this query https://overpass-turbo.eu/s/1R18

There are lots of ways without sac_scale but likely beyond what sac_scale=hiking comprises.

The table here https://wiki.openstreetmap.org/wiki/Key:mtb:scale likens S5 to T4. That seems overblown to me. But even the picture for S1 already looks like T2 to me.

Browsing my local area, conflating mtb:scale into the foot router would indeed help weed out some itineraries, e.g. shortcuts in the woods between the mountain restaurant and the parking lot, that probably rather served from the hiking router. Sample https://graphhopper.com/maps/?point=47.299212%2C11.458229&point=47.31379%2C11.451683&profile=foot&layer=TF+Cycle (One section there is missing both sac_scale and mtb:scale, I bet its neither T1 nor S0.)

Activity

  1. felagund commented on Sep 12, 2024

    @felagund

    There is some debate about the correspondance between mtb:scale and sac_scale here: https://community.openstreetmap.org/t/consuming-highway-path-take-2/118175/87

    One should probably be conservative and assume at least T3 from S5 and S4 and probably T2 from S3 (but not higher). From the textual description, S2 can be a staircase, so I would not assume anything for pedestriands based on that.

  2. hungerburg commented on Sep 12, 2024

    @hungerburg
    Author

    Nice catch, the staircase. I'd say, in so called outdoors territory, one cannot depend on that stairs are mapped as highway=steps - even on sac_scale=hiking paths - however useful that might be for people short on air, COPD e.g.

    I looked around the area of my local knowledge -- paths tagged mtb:scale=1, not foot=no &c, that I know from being there : both biking and hiking difficulty vary a lot. Yet no staircase found on paths tagged mtb:scale=2.

  3. ratrun commented on Oct 25, 2024

    @ratrun
    Contributor

    With the current master the creation of a custom foot or hike model is already possible. So these custom models could take the mtb_rating encoded value into account. But I'm not sure about what the expectation for the defaults of these two profiles would be. I think for the hike model only mtb:scale=6 would need to be completely avoided. For the foot profile this threshold might be maybe mtb:scale=2 ?

  4. hungerburg commented on Oct 26, 2024

    @hungerburg
    Author

    Not a GraphHopper user here, just an openstreetmap contributor with interest in how data is consumed. When I learned, that mountain_hiking is beyond the foot profile, I remembered mtb:scale pictures: S0 looks like sac_scale=hiking, S1 looks a lot like mountain_hiking and S2 touching onto demanding_mountain_hiking, S3 certainly that. That prompted me to file this issue. (I cannot make much sense of the remaining pictures from a pedestrian point of view.)

    Asking an acquaintance who's into MTB downhill, they do not know the S-scale that osm uses. Not a lot to learn there except: with 200 mm suspension stairs are like a ramp ;) I asked the question on the forum too. One user - who always writes very reasonable - wrote, modes too different to infer something about one from the other. Maybe it is just not possible to fill in sac_scale voids with mtb:scale. The mapping community better tasked with that?

  5. felagund commented on Oct 26, 2024

    @felagund

    The OSM wiki now specifies the relationship as this: https://wiki.openstreetmap.org/wiki/Key:mtb:scale#Relation_to_SAC_scale_for_hikers

    I would not do anything for hike profile, for foot what you suggests sounds reasonable.

  6. hungerburg commented on Oct 26, 2024

    @hungerburg
    Author

    On the pedestrian interpretation of the remaining mtb:scale pictures: S4 seems to centre around hairpin curves and relevant technique; It could show hiking, mountain_hiking or demanding_mountain_hiking but difference cannot be told, because it is not clear how deep the fall when having a black-out or merely just slipping in the very location. S5 looks like demanding_mountain_hiking again.

    I concur with @felagund with regard to the hiking profile - GraphHopper does not shy alpine_hiking in that profile as of now, so nothing in need of change ;)

  7. ratrun commented on Oct 27, 2024

    @ratrun
    Contributor

    Than you for your input. I created a PR, lets see what @karussell decides.

  8. ratrun commented on Nov 6, 2024

    @ratrun
    Contributor

    @karussell I think that this issue can be closed now.

  9. added this to the 10.0 milestone on Nov 6, 2024
  10. changed the title [-]Routing of ordinary pedestrians over ways tagged mtb:scale really wanted?[/-] [+]foot routing of ordinary pedestrians over ways tagged mtb:scale really wanted?[/+] on Oct 6, 2025
  11. karussell commented on Oct 6, 2025

    @karussell
    Member

    There are two problems: first mtb:scale seems to be tagged more subjectively than others. E.g. this way is mtb:scale=2 when in real world this is an ordinary track i.e. mtb:scale=0. Later on (up the hill, i.e. not this way) it gets a bit more tricky but not down there. There was a similar issue reported when we excluded paths based on mtb:scale and so I'm not sure about the quality of the mapping for this. For now I removed the hard constraint from foot.json and made it a soft constraint.

    Then there might be a problem because we use mtb_rating=0 as default and so mtb_rating=1 corresponds to mtb:scale=0, which is a bit confusing. However it is more consistent compared to hike_rating. And therefore I increased the number in foot.json as it seems to be more appropriated.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions