<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    It described in osm-wiki
    (<a class="moz-txt-link-freetext" href="http://wiki.openstreetmap.org/wiki/Relation:restriction#Members">http://wiki.openstreetmap.org/wiki/Relation:restriction#Members</a>).<br>
    There is not only "from way - via node - to way" way to specify
    restriction in osm, but as I remember GH work only with this
(<a class="moz-txt-link-freetext" href="http://wiki.openstreetmap.org/wiki/File:Intersection_TurnRestriction_ViaNode.PNG">http://wiki.openstreetmap.org/wiki/File:Intersection_TurnRestriction_ViaNode.PNG</a>).<br>
    <br>
    <div class="moz-cite-prefix">On 12.06.2015 18:28, Nick Bauer wrote:<br>
    </div>
    <blockquote
cite="mid:CAH3kBmwwU8Xo_hh59h+wm_VUWpQcY+iXx0b1qfZQ-WUvoGjEag@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Ok, so I believe I have figured out the "correct" way
              to represent a turn restriction in OSM so its considered
              by GH:<br>
              <br>
            </div>
            Seems to be that the most important part is that the ways
            are exact, meaning that they are split at the via node.<br>
          </div>
          <div>Put another way, the via node must represent the end of
            the "from" way and the same via node is also the end of the
            "to" way.<br>
          </div>
          I couldn't find this documented anywhere, although sometimes I
          am blind to certain things :)<br>
          <br>
        </div>
        The order of to, from, via is unimportant, as i have tested it
        with via as the second, and last entries in the relation.<br>
        <br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Jun 12, 2015 at 9:12 AM, Nick
          Bauer <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:nick.j.bauer@gmail.com" target="_blank">nick.j.bauer@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Here is an example relation:
              <div><img src="cid:part2.05030806.05090300@gmail.com"
                  alt="Inline image 1" height="441" width="474"><br>
              </div>
              <div><br>
              </div>
              <div>My routing can turn in either direction, no
                restriction is upheld.</div>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">On Fri, Jun 12, 2015 at 9:06
                    AM, dos65 <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:qtankle@gmail.com" target="_blank">qtankle@gmail.com</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000"> Sorry, my
                        mistake. Certainly members should contains via,
                        from and to.<br>
                        <br>
                        While processing restrictions, gh look to
                        restriction tag's value prefix(no or only) and
                        restrict or allow by from, via, to. There is no
                        difference between only_right_turn and
                        only_left_turn if members are equals.
                        <div>
                          <div><br>
                            <br>
                            <br>
                            <div>On 12.06.2015 16:52, Nick Bauer wrote:<br>
                            </div>
                            <blockquote type="cite">
                              <div dir="ltr">I've read that the relation
                                must have:
                                <div>from, to, via.</div>
                                <div><br>
                                </div>
                                <div>Are you saying that it will work if
                                  the relation is only containing from,
                                  to?  Is the ordering important?</div>
                                <div><br>
                                </div>
                                <div>Are there certain types of
                                  restrictions that work over others?
                                   such as no_left_turn vs
                                  only_right_turn?</div>
                                <div><br>
                                </div>
                              </div>
                              <div class="gmail_extra"><br>
                                <div class="gmail_quote">On Fri, Jun 12,
                                  2015 at 8:41 AM, dos65 <span
                                    dir="ltr"><<a
                                      moz-do-not-send="true"
                                      href="mailto:qtankle@gmail.com"
                                      target="_blank">qtankle@gmail.com</a>></span>
                                  wrote:<br>
                                  <blockquote class="gmail_quote"
                                    style="margin:0 0 0
                                    .8ex;border-left:1px #ccc
                                    solid;padding-left:1ex">
                                    <div bgcolor="#FFFFFF"
                                      text="#000000"> Hi Nick. <br>
                                      Restrictions must have
                                      members(from, to). In your case
                                      restriction don't have them and it
                                      does not processed by gh.
                                      <div>
                                        <div><br>
                                          <br>
                                          <br>
                                          <div>On 12.06.2015 16:29, Nick
                                            Bauer wrote:<br>
                                          </div>
                                          <blockquote type="cite">
                                            <div dir="ltr">Hi Peter-
                                              <div><br>
                                              </div>
                                              <div>Sorry for the delay. 
                                                Please see:</div>
                                              <div><a
                                                  moz-do-not-send="true"
href="https://graphhopper.com/maps/?point=41.616854%2C-88.122497&point=41.616365%2C-88.123473&locale=en-US&layer=Lyrk"
                                                  target="_blank">https://graphhopper.com/maps/?point=41.616854%2C-88.122497&point=41.616365%2C-88.123473&locale=en-US&layer=Lyrk</a></div>
                                              <div><br>
                                              </div>
                                              <div>OSM data has a turn
                                                restriction setup where
                                                you can only turn right,
                                                however GH shows a left
                                                turn.</div>
                                              <div>OSM data uses a
                                                single node with
                                                restriction:no_left_turn</div>
                                              <div><br>
                                              </div>
                                              <div>Is this a sufficient
                                                relation?  What is
                                                required for GH to
                                                consider turn
                                                restrictions?</div>
                                            </div>
                                            <div class="gmail_extra"><br>
                                              <div class="gmail_quote">On
                                                Thu, Jun 4, 2015 at 5:14
                                                AM, Peter <span
                                                  dir="ltr"><<a
                                                    moz-do-not-send="true"
href="mailto:graphhopper@gmx.de" target="_blank">graphhopper@gmx.de</a>></span>
                                                wrote:<br>
                                                <blockquote
                                                  class="gmail_quote"
                                                  style="margin:0 0 0
                                                  .8ex;border-left:1px
                                                  #ccc
                                                  solid;padding-left:1ex">
                                                  <div bgcolor="#FFFFFF"
                                                    text="#000000">
                                                    <div>Hi,<span><br>
                                                        <br>
                                                        > however I
                                                        am not getting
                                                        the results I
                                                        expect.<br>
                                                        <br>
                                                      </span> what
                                                      result do you
                                                      expect? Please be
                                                      more specific e.g.
                                                      also include some
                                                      coordinates or
                                                      screenshots and
                                                      then describe the
                                                      problem you have
                                                      :)<br>
                                                      <br>
                                                      Regards,<br>
                                                      Peter
                                                      <div>
                                                        <div><br>
                                                          <br>
                                                          <br>
                                                          On 04.06.2015
                                                          02:02, Nick
                                                          Bauer wrote:<br>
                                                        </div>
                                                      </div>
                                                    </div>
                                                    <blockquote
                                                      type="cite">
                                                      <div>
                                                        <div>
                                                          <div dir="ltr">Hello-

                                                          <div><br>
                                                          </div>
                                                          <div>After
                                                          reviewing the
                                                          0.4 list of
                                                          changes, it
                                                          seems to me
                                                          that turn
                                                          restrictions
                                                          are enabled. 
                                                          I have what i
                                                          believe is the
                                                          correct OSM as
                                                          well as
                                                          config.properties
                                                          file, however
                                                          I am not
                                                          getting the
                                                          results I
                                                          expect.</div>
                                                          <div><br>
                                                          </div>
                                                          <div>I am
                                                          mobile right
                                                          now, so I
                                                          can't post any
                                                          detailed
                                                          output, but
                                                          here is the
                                                          config:</div>
                                                          <div><br>
                                                          </div>
                                                          <div>
                                                          <div>prepare.chWeighting=no</div>
                                                          <div>prepare.chShortcuts=no</div>
                                                          <div>osmreader.acceptWay=car</div>
                                                          <div>graph.flagEncoders=car</div>
                                                          <div><br>
                                                          </div>
                                                          <div># Enable
                                                          turn
                                                          restrictions
                                                          for car or
                                                          motorcycle.</div>
                                                          <div>#
                                                          Currently you
                                                          need to
                                                          additionally
                                                          set
                                                          prepare.chWeighting=no
                                                          before using
                                                          this (see
                                                          below and
                                                          #270)</div>
                                                          <div>graph.flagEncoders=car|turnCosts=true</div>
                                                          </div>
                                                          <div>graph.dataaccess=RAM_STORE<br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>How does
                                                          this config
                                                          look?</div>
                                                          <div>My OSM
                                                          has to from
                                                          and via
                                                          relation
                                                          elements.  Any
                                                          other tips on
                                                          how to
                                                          correctly
                                                          create the
                                                          OSM?</div>
                                                          <div><br>
                                                          </div>
                                                          <div>Thanks,</div>
                                                          <div>Nick</div>
                                                          </div>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                        </div>
                                                      </div>
                                                      <pre>_______________________________________________
GraphHopper mailing list
<a moz-do-not-send="true" href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>
<a moz-do-not-send="true" href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
                                                    </blockquote>
                                                    <br>
                                                  </div>
                                                  <br>
_______________________________________________<br>
                                                  GraphHopper mailing
                                                  list<br>
                                                  <a
                                                    moz-do-not-send="true"
href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><br>
                                                  <a
                                                    moz-do-not-send="true"
href="https://lists.openstreetmap.org/listinfo/graphhopper"
                                                    rel="noreferrer"
                                                    target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
                                                  <br>
                                                </blockquote>
                                              </div>
                                              <br>
                                            </div>
                                            <br>
                                            <fieldset></fieldset>
                                            <br>
                                            <pre>_______________________________________________
GraphHopper mailing list
<a moz-do-not-send="true" href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>
<a moz-do-not-send="true" href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
                                          </blockquote>
                                          <br>
                                        </div>
                                      </div>
                                      <span><font color="#888888">
                                          <pre cols="72">-- 
Челышов Вадим
<a moz-do-not-send="true" href="mailto:qtankle@gmail.com" target="_blank">qtankle@gmail.com</a></pre>
                                        </font></span></div>
                                    <br>
_______________________________________________<br>
                                    GraphHopper mailing list<br>
                                    <a moz-do-not-send="true"
                                      href="mailto:GraphHopper@openstreetmap.org"
                                      target="_blank">GraphHopper@openstreetmap.org</a><br>
                                    <a moz-do-not-send="true"
                                      href="https://lists.openstreetmap.org/listinfo/graphhopper"
                                      rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
                                    <br>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                              <br>
                              <fieldset></fieldset>
                              <br>
                              <pre>_______________________________________________
GraphHopper mailing list
<a moz-do-not-send="true" href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>
<a moz-do-not-send="true" href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
                            </blockquote>
                            <br>
                            <pre cols="72">-- 
Челышов Вадим
<a moz-do-not-send="true" href="mailto:qtankle@gmail.com" target="_blank">qtankle@gmail.com</a></pre>
                          </div>
                        </div>
                      </div>
                      <br>
                      _______________________________________________<br>
                      GraphHopper mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:GraphHopper@openstreetmap.org"
                        target="_blank">GraphHopper@openstreetmap.org</a><br>
                      <a moz-do-not-send="true"
                        href="https://lists.openstreetmap.org/listinfo/graphhopper"
                        rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
                      <br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Челышов Вадим
<a class="moz-txt-link-abbreviated" href="mailto:qtankle@gmail.com">qtankle@gmail.com</a></pre>
  </body>
</html>