Skip to content

Render parent relation name rather than child relation name for routes #50

@StC-OSM

Description

@StC-OSM

Some routes (hiking, cycling, etc) are made of relations within relations, sometimes up to 4 to 5 levels of them. Often, each relation has a name only to indicate that it is a part of the parent relation.

When rendering, it is generally more appropriate to render the name of the parent relation. See for instance two images for parent relation 14900298 and its child relation 8413154, one from mapy.cz and the other from freemap.sk; the former corresponds more to what is usually expected on a map ("Voie de Vézelay" rather than "Voie de Vézelay, Brienne - Bar sur Seine" ; note that Tour des deux Bar is another route that goes through the same way there)

Capture d’écran 2024-10-06 à 10 38 50 Capture d’écran 2024-10-06 à 10 38 29

I have not checked how mapy.cz decides that a child relation corresponds to a route section, but it is plausible that they use the same criteria as what Waymarkedtrails states in its documentation: children relations with the same network tag are considered as sections of the parent relation. I wondered if you could consider using a similar rule.

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