abstreet/tests/input/divided_highway_split.osm
Dustin Carlino 0b8c86e2c8 Adjust the threshold for what counts as a straight vs right turn from 10
degrees to 30 degrees. It works around the issue in #428, but it doesn't
solve the root cause there, so the unit test is also adjusted to provide
a way to solve the harder problem.

Regenerated all maps accordingly. Many traffic signals tended to
improve, with a straight turn marked protected, instead of permitted as
a "right turn."
2020-12-18 12:06:16 -08:00

48 lines
1.7 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<!-- Resembles https://www.openstreetmap.org/node/2706256854, a two-way road splits into a divided highway, but with more extreme angles to force "right turns". -->
<osm>
<bounds minlon="0.0" maxlon="0.001" minlat="0.0" maxlat="0.001"/>
<node id="1" lon="0.0005" lat="0.0005"/>
<node id="2" lon="0.9" lat="-0.9"/>
<node id="3" lon="0.9" lat="0.9"/>
<node id="4" lon="-0.1" lat="0.0005"/>
<node id="5" lon="1.0" lat="0.0005"/>
<way id="100">
<nd ref="1"/>
<nd ref="2"/>
<tag k="name" v="outbound"/>
<tag k="highway" v="residential"/>
<tag k="dual_carriageway" v="yes"/>
<tag k="lanes" v="2"/>
<tag k="oneway" v="yes"/>
</way>
<way id="101">
<nd ref="3"/>
<nd ref="1"/>
<tag k="name" v="inbound"/>
<tag k="highway" v="residential"/>
<tag k="dual_carriageway" v="yes"/>
<tag k="lanes" v="2"/>
<tag k="oneway" v="yes"/>
</way>
<way id="102">
<nd ref="1"/>
<nd ref="4"/>
<tag k="name" v="bidi"/>
<tag k="highway" v="residential"/>
<tag k="sidewalk" v="both"/>
<tag k="lanes" v="4"/>
<tag k="lanes:forward" v="2"/>
<tag k="lanes:backward" v="2"/>
</way>
<relation id="1000">
<member type="way" ref="101" role="from"/>
<member type="node" ref="1" role="via"/>
<member type="way" ref="100" role="to"/>
<tag k="type" v="restriction"/>
<tag k="restriction" v="no_left_turn"/>
</relation>
</osm>