Opened 10 years ago
Last modified 3 years ago
#10982 new enhancement
Validate turn restrictions with to = from
Reported by: | naoliv | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core validator | Version: | |
Keywords: | Cc: |
Description
Could JOSM validate turn restrictions where to
is the same way/node as from
?
Attachments (1)
Change History (7)
follow-up: 2 comment:1 by , 10 years ago
comment:2 by , 10 years ago
So far only roles are checked.
Think validator could check for incorrect turn restrictions like:
- except `restriction=no_u_turn´:
from
andto
need to be different ways
- for
from
andto
ways,via
node:via
needs to be end node offrom
andto
- if
from
is taggedoneway=yes
,via
needs to be last node offrom
(exceptrestriction:[mode]
exists andfrom
is taggedoneway:[mode]=no
) - if
to
is taggedoneway=yes
,via
needs to be first node ofto
(exceptrestriction:[mode]
exists andto
is taggedoneway:[mode]=no
)
- if
- for all members ways:
- all ways need to be connected at end nodes
- if a way is tagged
oneway=yes
, it needs to point fromfrom
toto
(exceptrestriction:[mode]
exists and the way is taggedoneway:[mode]=no
)
- if a way is tagged
- all ways need to be connected at end nodes
And we could even check for the right access tags on all ways.
comment:4 by , 10 years ago
What I see that is wrong (ie, JOSM should give a warning):
1) we have a no_u_turn
in a street that ends somewhere (without any kind of key/value in the last node); if it's forbidden to make an U-turn then it makes the street a dead-end (the vehicle can enter the street but will never be able to get back)
2) likewise, but with a highway=turning_circle
3) likewise, but with a noexit=yes
4) we have a no_u_turn
in the middle of the street, forbidding a U-turn at the junction/crossing; this should be considered forbidden by default (making this no_u_turn
unnecessary), otherwise we will have one no_u_turn
restriction for every highway crossing in the map.
5) having a no_u_turn
in highway=footway
makes no sense (a person walking on it can't go back?)
6) likewise, but with highway=path
7) to
, via
and from
are all the same section of highway; it's just wrong and JOSM should warn.
What could be valid (and JOSM should not warn):
8) a no_u_turn
using a highway=mini_roundabout
as via
9) a no_u_turn
using one or more ways/nodes as via
The example OSM file is attached.
by , 10 years ago
Attachment: | no-u-turn-examples.osm added |
---|
comment:5 by , 10 years ago
A no_u_turn
using a via node with traffic_calming=island
could also be valid (and should not trigger a warning).
comment:6 by , 3 years ago
Think this test was implemented some time ago and there a warnings about unconnected members under Role verification problem
like The "from" way does not start or end at a "via" node
.
what about restriction=no_u_turn?