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

Backward role in relation not honored #148

Closed
dcesari opened this issue Jan 20, 2025 · 2 comments
Closed

Backward role in relation not honored #148

dcesari opened this issue Jan 20, 2025 · 2 comments

Comments

@dcesari
Copy link

dcesari commented Jan 20, 2025

It seems that the "backward" role in relation for one-way cross country piste segments is not honored and these segments are rendered in the opposite direction. For example this segment coincides with a (two way) road originally mapped towards the south but, as a piste, it has the piste:oneway=yes tag and it has a role=backward in the relation, meaning that it can be run one-way towards the north (and this is the case on the field, it's a shortcut for the "Panorama" piste). In my view this is a correct way to tag, but on openskimap.org it is oriented towards the south and this also partly breaks the navigation in the profile.
Could this be fixed?

@russellporter
Copy link
Owner

In general, relations support is very limited, the relation data is only used to supplement a segment's metadata (how the name got added to the segment in this case). Roles are not used at all at the moment.

That said, in this case the problem with the direction of the segment is not related to the relation. Imagine we didn't have the relation at all, we'd still have a oneway piste that was in the wrong direction. The tagging of the way implies that the piste is oneway in the direction of the way. The simplest solution is to reverse the way.

If you couldn't reverse the way for some reason due to side effects (imagine the case of a oneway road that becomes a oneway ski trail in the opposite direction in winter), you can also use piste:oneway=-1 to indicate the piste is in the opposite direction of the way. That said, OpenSkiMap does not currently support that tagging value, I have created a separate issue for that #151.

The use of roles in relations will come when adding proper support for routes in #80

@russellporter russellporter closed this as not planned Won't fix, can't repro, duplicate, stale Jan 28, 2025
@dcesari
Copy link
Author

dcesari commented Jan 29, 2025

Thank you for the reaction, that was exactly the point, in most cases I could probably reverse the way, but in general I do not know the side effects and maybe there was a good reason for orienting it like that.

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

No branches or pull requests

2 participants