Turn restrictions?

Routing
2010-06-22
2013-05-29
  • Arno Teigseth

    Arno Teigseth - 2010-06-22

    Hi

    I've tried to make turn restrictions work.
    My test map is on
    http://osm.org/go/NdVJZrI3B-

    Here you cannot go southward on Teniente H ortiz and turn into moro moro.

    However, when I download the osm extract, build the gps2mid and run it on my phone, the turn restriction is not respected. I'm still directed to turn left…

    Is something wrong with my turn restriction on openstreetmap? Or does gps2mid not support turn restrictions?
    best
    Arno

     
  • sk750

    sk750 - 2010-06-22

    It's probably necessary to change the restriction according to the rule "If the way does not start or end at the "via"-node, split it" (quoted from http://wiki.openstreetmap.org/wiki/Relation:restriction)

     
  • Arno Teigseth

    Arno Teigseth - 2010-06-24

    Hi there

    I tried hard following your suggestions, but still I'm routed south via T Hugo Ortiz and left turn into moro moro. Could there be something else wrong? If it is any comfort, also navit routes wrong… Could someone check the turn restriction?  http://www.openstreetmap.org/?lat=-0.27931&lon=-78.542801&zoom=18?

    I *should* have to go Cusubamba-sidestreet-moromoro. But routing in both gps2mid and navit does not work =?

    axed on the irc but still no answer…

     
  • Arno Teigseth

    Arno Teigseth - 2010-06-24

    That's a really practical way to check relations. Had no idea you could do that. You're right - somehow there were two roads on top of each other there. But still, after deleting one, downloading the new area and loading it to navit, routing is not correct? (see http://imagebin.ca/view/L5h45t9.html)    - also in gps2mid it still routes wrong…

    maybe I have to delete all the roads and start from scratch.

     
  • sk750

    sk750 - 2010-06-24

    Maybe have a look at the output frm Osm2GpsMid. It usually gives warnings if a restriction is invalid.

     
  • Arno Teigseth

    Arno Teigseth - 2010-06-25

    thanks

    read Relations  6
    Types of relations present but ignored:
       restriction: 1
       route: 5

    hmm ignored?

     
  • sk750

    sk750 - 2010-06-25

    Maybe your osm data is not complete (not containing the ways/nodes for the restriction).
    I've tried with this region
    region.1.lat.min = -0.2982603
    region.1.lon.min = -78.54456
    region.1.lat.max = -0.27156729
    region.1.lon.max = -78.52341
    and got:

    Remaining after cleanup:
      Nodes: 1863
      Ways: 579
      Relations: 5
    Creating route data
    Resolving 0 viaWays for turn restrictions
      0 viaWays resolved
    Calculating turn restrictions
    1 turn restrictions valid
    Optimizing route data
    ….

     
  • Arno Teigseth

    Arno Teigseth - 2010-06-27

    hmm I get a different result running:
    java -Xmx1024M -jar Osm2GpsMid-0.5.00.jar osmXapi online.properties

    I copied (copy/paste) your region described above and put it into online.properties:

    bundle.name = Turnrestricion
    region.1.lat.min = -0.2982603 
    region.1.lon.min = -78.54456 
    region.1.lat.max = -0.27156729 
    region.1.lon.max = -78.52341
    

    and I still get
    read Nodes 1875
    read Ways  557
    read Relations  6
    Types of relations present but ignored:
       restriction: 1
       route: 5

    would you mind sending me/posting your successfully created jar? just to test it..

    best
    Arno

     
  • sk750

    sk750 - 2010-06-27

    I guess that's not necessary - the version 0.5.00 you used did not support turn restrictions yet. Please try either with V0.6.0 or the nightly builds.

     
  • Arno Teigseth

    Arno Teigseth - 2010-06-29

    aha

    I tried originally with 0.6 but got some error message. Turned out the downloaded file was corrupt, it worked now after downloading 0.6 again and deleting the old one. :D

    This rocks, thank you!

    Sorry I should of course have included my version numbers in my original post.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks