Zabrana skretanja u levo kamionima

Imam situaciju da je na raskrsnici iz jedne ulice zabranjeno skretanje u levo ali samo za kamione. Kako se to obeležava?

Znam kako se obeležava zabrana skretana ulevo za sve.

like a normal turn restriction but with type=restriction:hgv

Add way A and B plus node n into a relation. Add
type=restriction:hgv
restriction:hgv=no_left_turn
and in the lower left window apply
“via” to n
“from” to A
“to” to B

or the way you need it. If all is fine, you should see a street sign in JOSM.

Edit: You will not see a street sign, just tried it. You only see it if it is a general turn restriction (i.e. without “:hgv”)

hgv is short for what?

I noticed when I set no_left_turn restriction JOSM actualy renders sign that means right and straight allowed. That has no sense when there is nowhere to turn right. Isitok to use straightonly in such situations?

As I can see, restrictions are actualy not rendered on map?

hgv stand for heavy good vehicle = truck. It is not rendered on the map but used by routing engines, similar to maxspeed and other tags. It doesn not matter if you use only_straight_on or no_left_turn if there is not right turn availability. If you use only_straight_on you should use the straight-on way as “to”-role in the relation.

I would newer guess what hgv means, I think I am going to edit Wiki to clear that :slight_smile:

JOSM reports that restriction:hgv is unknown, but I guess it just does not support it: http://www.openstreetmap.org/browse/relation/2263368

Trebalo bi da dodeliš i ‘from’, ‘via’, i ‘to’ uloge, inače se ne zna odakle nije dozvoljeno.

To sam napravio, nego samo nisam mogao da nadjem kako da zabrana važi samo za kamione.

Pa na ovom linku koji si ostavio i dalje nema tih uloga u relaciji… Da, imaš tri člana relacije, ali se ne zna koji ima koju ulogu, moraš ih izričito upisati.

Kao bre nema? Ček da pogledam.

Stvarno nema. Upisao sam.

restriction = only_right_turn should be changed to restriction:hgv = only_right_turn according to the wiki
http://wiki.openstreetmap.org/wiki/Turn_restrictions

There is a plugin that can help with turn restriction
http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Turnrestrictions