There are many cases where “no through traffic” restrictions are a little complex. Consider the case below. If you enter through the green point, then exiting through any of the two red points are not permitted. But through traffic is permitted if you enter or exit through any other road, for example if you enter through “Skarvegen” or if you exit through “Losvegen”. Note that the restriction only applies if you entered past the sign at the green point.
(The reverse restriction may also apply in many cases, i.e. two entry points/one exit point.)
The restriction sign at the green entry point says “Applies to through traffic to Sjøvegen” (the yellow secondary road to the north):
Using motor_vehicle=destination on the ways between the green and red points would not work because it would also deny the other entry and edit routes and because direction of travel matters. Also, some routers (GraphHopper) do not seem to work with consecutive ways with this tagging.
A restriction relation with restriction=no_exit seems to fit the description, however, i) there is no applicable via
point, ii) the restriction applies to specific points (the position of the signs), not ways, and iii) more than one entry point may be needed.
Using a restriction relation seems to be needed, but how do you think it should be done?
- Either modify the current
restriction=no_exit
wiki to i) permit points asto
andfrom
members, ii) make thevia
member optional and iii) permit multipleto
andfrom
members. There are 30-40 validno_exit
restrictions currently in OSM (206 in total but many with one member only). - Or create a new restriction type, for example
restriction=no_through_traffic
, with the same member types as above, i.e. with (green) entry points asfrom
members and (red) prohibited exit points asto
members. - Other solutions?
Here is a file with 1582 real-life examples (disregard the cases with just two members and no other routes): no_through_traffic_norway.osm
My intention is to create a proposal, depending on the feedback here.