<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    <br>
    <div class="moz-cite-prefix">Às 15:36 de 02/05/2020, Philip Barnes
      escreveu:<br>
    </div>
    <blockquote type="cite"
cite="mid:7b3f91cc9b033be813bc10875f43660545b68379.camel@trigpoint.me.uk">
      <div>Hi António</div>
      <div>Normally I would add direction:forward or direction:backward
        to a stop or give_way to indicate which direction it applies in.</div>
      <div><br>
      </div>
      <div>Where speed limits are different you can use
        maxspeed:backward and maxspeed:forward.</div>
      <div><br>
      </div>
      <div>Phil (trigpoint)</div>
    </blockquote>
    <br>
    Phil, you need to read more carefully what's this about, because
    it's way more complex than that.<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">Às 16:47 de 02/05/2020, Jarek
      Piórkowski escreveu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACV3h2=pbyhRFSuxGT2Cy30Yo0+3VRBNLxVf1DLyuOtGTzKYRg@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">António, interesting question. In my interpretation, relation
type=enforcement seems to be intended for recording or punishing
violations of rules (wiki "devices that measure and document traffic
violations") - not for the restrictive rules themselves.

Instead, maybe type=restriction + restriction=stop, with
from-to-via-position? It's not widely used, but it does have a couple
of mappers: <a class="moz-txt-link-freetext" href="https://taginfo.openstreetmap.org/tags/restriction=stop">https://taginfo.openstreetmap.org/tags/restriction=stop</a>

Possible examples:
<a class="moz-txt-link-freetext" href="https://www.openstreetmap.org/relation/3884744">https://www.openstreetmap.org/relation/3884744</a> except with "to" as a
way rather than node
<a class="moz-txt-link-freetext" href="https://www.openstreetmap.org/relation/2966044">https://www.openstreetmap.org/relation/2966044</a> except probably with
the to-way split at the intersection

traffic_sign:lanes looks like it would also work, and the existing
examples seem a bit more fleshed out than for restriction=stop -
depends if you prefer :lanes tags or relations, I suppose.
</pre>
    </blockquote>
    <br>
    This is an open issue for several years, without a seamless
    solution, but I see this popping up many times when mapping.<br>
    I'm not very knowledgable about relations, and I'm sorry if I'm a
    bit confused here, but doesn't a restriction relation means the
    exact opposite of what's intended here?<br>
    I mean, I want to apply a STOP sign to a given lane (in a way with
    two lanes, for example) and force its action to a given direction on
    the new road ahead.<br>
    The wiki page for this type of relation doesn't mention STOP nor
    GIVEWAY signs, but in the discussion page there this:<br>
<a class="moz-txt-link-freetext" href="https://wiki.openstreetmap.org/wiki/Talk:Relation:restriction#Incorporate_.27give_way.2Fyield.27_and_.27stop.27_as_possible_restrictions">https://wiki.openstreetmap.org/wiki/Talk:Relation:restriction#Incorporate_.27give_way.2Fyield.27_and_.27stop.27_as_possible_restrictions</a><br>
    <br>
    If neither relation scheme (enforcement or restriction) can be
    applied here (for complexity or incompatibility reasons), why not
    use the existing lanes scheme?<br>
    Like this:<br>
    <pre><code>highway=stop
stop:lanes=yes|no
stop:turn:lanes=left
</code></pre>
    <br>
    <br>
    <br>
  </body>
</html>