Giter Site home page Giter Site logo

Comments (12)

frodrigo avatar frodrigo commented on June 2, 2024

No test for this. It's make sense except for U-Turns.
Can be done in sax plugin

from osmose-backend.

naoliv avatar naoliv commented on June 2, 2024

But the problem that I see a lot here is exactly for u-turn.
Some users add a lot of no_u_turn restriction with the from and to as the same way.

no_u_turn should be considered an implicit value when we refer to the way itself.

from osmose-backend.

frodrigo avatar frodrigo commented on June 2, 2024

I see no exception in the wiki about u-turn. So, I think it must be like other, even when from is to.

from osmose-backend.

naoliv avatar naoliv commented on June 2, 2024

But if this is allowed, people could start adding two no_u_turn on every highway segment (one on each ending).
Maybe it's not forbidden, but also doesn't make sense to have such turn restrictions.

from osmose-backend.

frodrigo avatar frodrigo commented on June 2, 2024

Maybe it's not the same rules in Brazil and here in France. But unless there a non u-turn sign you have the right to do it. So here it's not useless to map no-u-turn.

from osmose-backend.

naoliv avatar naoliv commented on June 2, 2024

Can this test be enabled only for Brazil then?

from osmose-backend.

naoliv avatar naoliv commented on June 2, 2024

Or disable only in Frace?

Maybe I am not properly explaining this :-)
I asked right now in #osm:

"Is no_u_turn implict on the way itself? (ie, it isn't necessary to add a no_u_turn on every highway segment with both "from" and "to" as itself)"

And got an answer:
"correct, it's only necessary to add it when the way is split into two parallel ones"

from osmose-backend.

frodrigo avatar frodrigo commented on June 2, 2024

commit 316752d3be6bae6c3e661ff3b289a8a2d80986c8 (HEAD, master)
Add plugin Structural_Restriction for no u-turn on Brazil

from osmose-backend.

frodrigo avatar frodrigo commented on June 2, 2024

It's online. Please, can you check ?
http://osmose.openstreetmap.fr/map/#item=3180&class=31801

from osmose-backend.

naoliv avatar naoliv commented on June 2, 2024

Very good!
Is it testing only no_u_turn?
This test could be extended for every kind of restriction (no_left_turn, no_straight_on, only_right_turn and everything else doesn't make sense (at least here) when to and from are the same way)

from osmose-backend.

frodrigo avatar frodrigo commented on June 2, 2024

Generalise Structural_Restriction plugin to all restriction types github#20
c216d9f

from osmose-backend.

frodrigo avatar frodrigo commented on June 2, 2024

Done. Almost no error in other counties.

from osmose-backend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.