Open cvvergara opened 7 years ago
Statistics:
grep 'v=\"restriction' restrictions.osm | wc -l
57
kind | count |
---|---|
no_right_turn | 3 |
no_left_turn | 7 |
no_u_turn | 3 |
only_right_turn | 17 |
only_left_turn | 2 |
only_straight_on | 25 |
total | 57 |
example of calculating the count
grep only_left_turn restrictions.osm | wc -l
The list of relations in the file:
no_right_turn
<relation id="2654079" version="1" timestamp="2012-12-22T17:01:50Z" changeset="14368535" uid="381316" user="Schermy">
<member type="way" ref="93448457" role="from"/>
<member type="way" ref="93448446" role="to"/>
<member type="node" ref="75736605" role="via"/>
<tag k="restriction" v="no_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="2654080" version="1" timestamp="2012-12-22T17:01:50Z" changeset="14368535" uid="381316" user="Schermy">
<member type="way" ref="30513235" role="from"/>
<member type="way" ref="30513221" role="to"/>
<member type="node" ref="336812979" role="via"/>
<tag k="except" v="hgv"/>
<tag k="restriction" v="no_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="4185811" version="1" timestamp="2014-11-11T20:23:20Z" changeset="26721235" uid="2675" user="Eckhart Wörner">
<member type="way" ref="133352939" role="from"/>
<member type="way" ref="312313392" role="to"/>
<member type="node" ref="852677628" role="via"/>
<tag k="restriction" v="no_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
no_left_turn
<relation id="1810039" version="3" timestamp="2012-12-22T17:01:50Z" changeset="14368535" uid="381316" user="Schermy">
<member type="way" ref="134667165" role="from"/>
<member type="node" ref="283842577" role="via"/>
<member type="way" ref="134792461" role="to"/>
<tag k="restriction" v="no_left_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="1810071" version="1" timestamp="2011-10-25T17:34:25Z" changeset="9654142" uid="381316" user="Schermy">
<member type="way" ref="134669690" role="from"/>
<member type="way" ref="117553923" role="to"/>
<member type="node" ref="1324080118" role="via"/>
<tag k="restriction" v="no_left_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1810072" version="2" timestamp="2012-12-02T13:12:28Z" changeset="14124226" uid="381316" user="Schermy">
<member type="way" ref="30512479" role="to"/>
<member type="node" ref="1323917172" role="via"/>
<member type="way" ref="134669694" role="from"/>
<tag k="restriction" v="no_left_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="1811346" version="1" timestamp="2011-10-26T16:57:10Z" changeset="9661858" uid="381316" user="Schermy">
<member type="way" ref="27786794" role="from"/>
<member type="way" ref="134800098" role="to"/>
<member type="node" ref="75740038" role="via"/>
<tag k="restriction" v="no_left_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="2654078" version="1" timestamp="2012-12-22T17:01:50Z" changeset="14368535" uid="381316" user="Schermy">
<member type="way" ref="184614937" role="from"/>
<member type="way" ref="178195372" role="to"/>
<member type="node" ref="87383165" role="via"/>
<tag k="except" v="hgv"/>
<tag k="restriction" v="no_left_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="2801218" version="1" timestamp="2013-03-04T22:08:50Z" changeset="15252425" uid="191979" user="It's so funny">
<member type="way" ref="51392054" role="from"/>
<member type="way" ref="52385458" role="to"/>
<member type="node" ref="666177031" role="via"/>
<tag k="restriction" v="no_left_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="4185810" version="1" timestamp="2014-11-11T20:23:19Z" changeset="26721235" uid="2675" user="Eckhart Wörner">
<member type="way" ref="224511836" role="from"/>
<member type="way" ref="133352942" role="to"/>
<member type="node" ref="1546531682" role="via"/>
<tag k="restriction" v="no_left_turn"/>
<tag k="type" v="restriction"/>
</relation>
no_u_turn
<relation id="4185815" version="1" timestamp="2014-11-11T20:23:20Z" changeset="26721235" uid="2675" user="Eckhart Wörner">
<member type="way" ref="71735115" role="from"/>
<member type="way" ref="71735116" role="to"/>
<member type="node" ref="257680585" role="via"/>
<tag k="restriction" v="no_u_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="4610880" version="1" timestamp="2015-02-20T22:05:31Z" changeset="28987840" uid="191979" user="It's so funny">
<member type="way" ref="103233043" role="from"/>
<member type="way" ref="30979095" role="to"/>
<member type="node" ref="1546525085" role="via"/>
<tag k="restriction" v="no_u_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="4610881" version="1" timestamp="2015-02-20T22:05:31Z" changeset="28987840" uid="191979" user="It's so funny">
<member type="way" ref="135384434" role="from"/>
<member type="way" ref="43560928" role="to"/>
<member type="node" ref="1191909036" role="via"/>
<tag k="restriction" v="no_u_turn"/>
<tag k="type" v="restriction"/>
</relation>
only_left_turn
<relation id="1811241" version="1" timestamp="2011-10-26T15:38:24Z" changeset="9661291" uid="381316" user="Schermy">
<member type="way" ref="134792472" role="from"/>
<member type="way" ref="134792461" role="to"/>
<member type="node" ref="1481382061" role="via"/>
<tag k="restriction" v="only_left_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="2982836" version="1" timestamp="2013-06-05T16:54:44Z" changeset="16434595" uid="12295" user="mapper_07">
<member type="way" ref="224511834" role="to"/>
<member type="node" ref="1467975033" role="via"/>
<member type="way" ref="133352940" role="from"/>
<tag k="restriction" v="only_left_turn"/>
<tag k="type" v="restriction"/>
</relation>
only_right_turn
<relation id="1810044" version="2" timestamp="2011-10-26T15:38:24Z" changeset="9661291" uid="381316" user="Schermy">
<member type="way" ref="98501024" role="to"/>
<member type="node" ref="283842577" role="via"/>
<member type="way" ref="134792461" role="from"/>
<tag k="hour_off" v="20:00"/>
<tag k="hour_on" v="06:00"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1810046" version="2" timestamp="2013-02-05T21:28:19Z" changeset="14927175" uid="62882" user="friedl">
<member type="way" ref="134667259" role="from"/>
<member type="node" ref="1480288168" role="via"/>
<member type="way" ref="134667174" role="to"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1810047" version="1" timestamp="2011-10-25T17:00:11Z" changeset="9653862" uid="381316" user="Schermy">
<member type="way" ref="32479918" role="from"/>
<member type="way" ref="134667172" role="to"/>
<member type="node" ref="365181022" role="via"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1810048" version="2" timestamp="2012-12-22T17:01:51Z" changeset="14368535" uid="381316" user="Schermy">
<member type="way" ref="123764395" role="from"/>
<member type="way" ref="134667165" role="to"/>
<member type="node" ref="283842577" role="via"/>
<tag k="hour_off" v="20:00"/>
<tag k="hour_on" v="06:00"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="1810084" version="1" timestamp="2011-10-25T17:34:28Z" changeset="9654142" uid="381316" user="Schermy">
<member type="way" ref="30512516" role="from"/>
<member type="way" ref="134667174" role="to"/>
<member type="node" ref="75740064" role="via"/>
<tag k="hour_off" v="20:00"/>
<tag k="hour_on" v="06:00"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1810086" version="2" timestamp="2013-02-05T21:28:20Z" changeset="14927175" uid="62882" user="friedl">
<member type="way" ref="117549965" role="from"/>
<member type="node" ref="1324042037" role="via"/>
<member type="way" ref="204313945" role="to"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1810089" version="1" timestamp="2011-10-25T17:34:28Z" changeset="9654142" uid="381316" user="Schermy">
<member type="way" ref="117539021" role="from"/>
<member type="way" ref="117539029" role="to"/>
<member type="node" ref="1323971411" role="via"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1810090" version="2" timestamp="2012-12-02T13:12:28Z" changeset="14124226" uid="381316" user="Schermy">
<member type="way" ref="30512479" role="from"/>
<member type="node" ref="1323917172" role="via"/>
<member type="way" ref="134669694" role="to"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1810091" version="1" timestamp="2011-10-25T17:34:29Z" changeset="9654142" uid="381316" user="Schermy">
<member type="way" ref="117553923" role="from"/>
<member type="way" ref="134669690" role="to"/>
<member type="node" ref="1324080118" role="via"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<tag k="type" v="restriction"/>
</relation>
<relation id="1811356" version="1" timestamp="2011-10-26T16:57:11Z" changeset="9661858" uid="381316" user="Schermy">
<member type="way" ref="134800114" role="from"/>
<member type="way" ref="134800101" role="to"/>
<member type="node" ref="1481435308" role="via"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1811357" version="1" timestamp="2011-10-26T16:57:12Z" changeset="9661858" uid="381316" user="Schermy">
<member type="way" ref="134800161" role="from"/>
<member type="way" ref="134800168" role="to"/>
<member type="node" ref="1481435048" role="via"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1811358" version="2" timestamp="2012-06-26T21:17:33Z" changeset="12031072" uid="381316" user="Schermy">
<member type="node" ref="1481435234" role="via"/>
<member type="way" ref="134800100" role="to"/>
<member type="way" ref="169162876" role="from"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1811359" version="1" timestamp="2011-10-26T16:57:12Z" changeset="9661858" uid="381316" user="Schermy">
<member type="way" ref="134800103" role="to"/>
<member type="node" ref="1481435062" role="via"/>
<member type="way" ref="134800168" role="from"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="2533684" version="1" timestamp="2012-10-28T14:35:15Z" changeset="13662010" uid="381316" user="Schermy">
<member type="way" ref="93448446" role="from"/>
<member type="way" ref="188075348" role="to"/>
<member type="node" ref="75736605" role="via"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="2982837" version="1" timestamp="2013-06-05T16:54:44Z" changeset="16434595" uid="12295" user="mapper_07">
<member type="way" ref="224511835" role="to"/>
<member type="node" ref="330076467" role="via"/>
<member type="way" ref="224511832" role="from"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="2982838" version="1" timestamp="2013-06-05T16:54:44Z" changeset="16434595" uid="12295" user="mapper_07">
<member type="way" ref="224511836" role="to"/>
<member type="node" ref="1467975041" role="via"/>
<member type="way" ref="133352941" role="from"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="5837233" version="1" timestamp="2016-01-08T09:20:21Z" changeset="36440706" uid="381316" user="Schermy">
<member type="way" ref="140130044" role="from"/>
<member type="way" ref="111360011" role="to"/>
<member type="node" ref="500897772" role="via"/>
<tag k="except" v="hgv;psv"/>
<tag k="restriction" v="only_right_turn"/>
<tag k="type" v="restriction"/>
</relation>
only_straight_on
<relation id="1810042" version="1" timestamp="2011-10-25T17:00:10Z" changeset="9653862" uid="381316" user="Schermy">
<member type="way" ref="134667267" role="from"/>
<member type="way" ref="32479917" role="to"/>
<member type="node" ref="256343966" role="via"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="1810077" version="1" timestamp="2011-10-25T17:34:26Z" changeset="9654142" uid="381316" user="Schermy">
<member type="way" ref="134669697" role="from"/>
<member type="node" ref="75740076" role="via"/>
<member type="way" ref="134669698" role="to"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1810078" version="1" timestamp="2011-10-25T17:34:27Z" changeset="9654142" uid="381316" user="Schermy">
<member type="way" ref="134669695" role="from"/>
<member type="node" ref="75740080" role="via"/>
<member type="way" ref="134669693" role="to"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1810080" version="1" timestamp="2011-10-25T17:34:27Z" changeset="9654142" uid="381316" user="Schermy">
<member type="way" ref="134669698" role="to"/>
<member type="node" ref="1323971156" role="via"/>
<member type="way" ref="134669695" role="from"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1810082" version="1" timestamp="2011-10-25T17:34:27Z" changeset="9654142" uid="381316" user="Schermy">
<member type="way" ref="134669693" role="from"/>
<member type="way" ref="117539029" role="to"/>
<member type="node" ref="1323971411" role="via"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="1811347" version="3" timestamp="2013-04-19T10:15:20Z" changeset="15783262" uid="45347" user="eriosw">
<member type="way" ref="134800100" role="from"/>
<member type="node" ref="75740047" role="via"/>
<member type="way" ref="217941423" role="to"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1811348" version="1" timestamp="2011-10-26T16:57:10Z" changeset="9661858" uid="381316" user="Schermy">
<member type="way" ref="134800098" role="from"/>
<member type="node" ref="75740038" role="via"/>
<member type="way" ref="134800101" role="to"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1811350" version="1" timestamp="2011-10-26T16:57:10Z" changeset="9661858" uid="381316" user="Schermy">
<member type="way" ref="29979299" role="from"/>
<member type="way" ref="134800098" role="to"/>
<member type="node" ref="130105922" role="via"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1811352" version="1" timestamp="2011-10-26T16:57:11Z" changeset="9661858" uid="381316" user="Schermy">
<member type="way" ref="134800102" role="from"/>
<member type="node" ref="1481434979" role="via"/>
<member type="way" ref="134800107" role="to"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1811353" version="3" timestamp="2012-12-22T17:01:50Z" changeset="14368535" uid="381316" user="Schermy">
<member type="way" ref="134800105" role="to"/>
<member type="node" ref="1481435078" role="via"/>
<member type="way" ref="134800103" role="from"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1811354" version="1" timestamp="2011-10-26T16:57:11Z" changeset="9661858" uid="381316" user="Schermy">
<member type="way" ref="35684420" role="from"/>
<member type="way" ref="134800107" role="to"/>
<member type="node" ref="1480288621" role="via"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="1811355" version="1" timestamp="2011-10-26T16:57:11Z" changeset="9661858" uid="381316" user="Schermy">
<member type="way" ref="134667169" role="from"/>
<member type="way" ref="134667172" role="to"/>
<member type="node" ref="365181022" role="via"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="2253066" version="1" timestamp="2012-06-26T21:17:32Z" changeset="12031072" uid="381316" user="Schermy">
<member type="way" ref="134800104" role="from"/>
<member type="way" ref="134800101" role="to"/>
<member type="node" ref="1481435308" role="via"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="2671756" version="1" timestamp="2012-12-31T14:04:02Z" changeset="14477789" uid="8748" user="ToniE">
<member type="way" ref="198931052" role="from"/>
<member type="node" ref="500876392" role="via"/>
<member type="way" ref="198931055" role="to"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="2691021" version="3" timestamp="2016-08-01T22:00:00Z" changeset="41178837" uid="115042" user="Filius Martii">
<member type="way" ref="200257283" role="from"/>
<member type="way" ref="200257271" role="to"/>
<member type="node" ref="1806989866" role="via"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="2691022" version="1" timestamp="2013-01-09T09:51:54Z" changeset="14584143" uid="202392" user="imagic">
<member type="way" ref="82719425" role="to"/>
<member type="node" ref="305106228" role="via"/>
<member type="way" ref="200257279" role="from"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="2691023" version="3" timestamp="2016-08-01T22:00:01Z" changeset="41178837" uid="115042" user="Filius Martii">
<member type="way" ref="82719424" role="from"/>
<member type="way" ref="200257272" role="to"/>
<member type="node" ref="2102544542" role="via"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="2691024" version="1" timestamp="2013-01-09T09:51:54Z" changeset="14584143" uid="202392" user="imagic">
<member type="way" ref="200257263" role="from"/>
<member type="way" ref="82719424" role="to"/>
<member type="node" ref="305106223" role="via"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="2742485" version="1" timestamp="2013-02-05T21:28:19Z" changeset="14927175" uid="62882" user="friedl">
<member type="way" ref="117531897" role="from"/>
<member type="node" ref="75740076" role="via"/>
<member type="way" ref="134669698" role="to"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="2742486" version="1" timestamp="2013-02-05T21:28:19Z" changeset="14927175" uid="62882" user="friedl">
<member type="node" ref="2143198462" role="via"/>
<member type="way" ref="204313945" role="to"/>
<member type="way" ref="204313938" role="from"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="2742487" version="1" timestamp="2013-02-05T21:28:19Z" changeset="14927175" uid="62882" user="friedl">
<member type="way" ref="204313943" role="from"/>
<member type="node" ref="1323917118" role="via"/>
<member type="way" ref="204313937" role="to"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="2742488" version="1" timestamp="2013-02-05T21:28:19Z" changeset="14927175" uid="62882" user="friedl">
<member type="node" ref="2143198454" role="via"/>
<member type="way" ref="45066207" role="to"/>
<member type="way" ref="204313935" role="from"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
--
<relation id="4185812" version="1" timestamp="2014-11-11T20:23:20Z" changeset="26721235" uid="2675" user="Eckhart Wörner">
<member type="way" ref="312313396" role="to"/>
<member type="node" ref="371125631" role="via"/>
<member type="way" ref="312313393" role="from"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="4185813" version="1" timestamp="2014-11-11T20:23:20Z" changeset="26721235" uid="2675" user="Eckhart Wörner">
<member type="way" ref="224511834" role="from"/>
<member type="way" ref="224511837" role="to"/>
<member type="node" ref="1546531681" role="via"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
<relation id="4185814" version="1" timestamp="2014-11-11T20:23:20Z" changeset="26721235" uid="2675" user="Eckhart Wörner">
<member type="way" ref="312313393" role="from"/>
<member type="way" ref="32952425" role="to"/>
<member type="node" ref="1467975030" role="via"/>
<tag k="restriction" v="only_straight_on"/>
<tag k="type" v="restriction"/>
</relation>
Currently osm2pgRouting does not capture turn restrictions.
testing data for developing
Using this area:
restrictions are marked in the circles.
inage from https://overpass-turbo.eu/ with
and then manually choose the area in the map.