mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 22:03:37 +00:00
[traffic] Add test cases
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
17
data/test_data/traff/DE-A10-Werder-GrossKreutz.xml
Normal file
17
data/test_data/traff/DE-A10-Werder-GrossKreutz.xml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<!-- From DE-RealWorldLargeFeed. -->
|
||||||
|
<!--
|
||||||
|
The route starts at a large junction, goes down the wrong carriageway of the motorway,
|
||||||
|
changes direction at the next junction, then back.
|
||||||
|
-->
|
||||||
|
<feed>
|
||||||
|
<message expiration_time="2025-10-09T21:37:08+03:00" id="tmc:d.1.7:d.1.10209.n.1" receive_time="2025-10-09T21:17:08+03:00" update_time="2025-10-09T21:17:08+03:00">
|
||||||
|
<location directionality="ONE_DIRECTION" fuzziness="LOW_RES" road_class="MOTORWAY" road_name="Westlicher Berliner Ring" road_ref="A10">
|
||||||
|
<from junction_name="Werder" junction_ref="21">+52.334801 +12.814650</from>
|
||||||
|
<to junction_name="Groß Kreutz" junction_ref="22">+52.393700 +12.835000</to>
|
||||||
|
</location>
|
||||||
|
<events>
|
||||||
|
<event class="CONGESTION" type="CONGESTION_STATIONARY_TRAFFIC">
|
||||||
|
</event>
|
||||||
|
</events>
|
||||||
|
</message>
|
||||||
|
</feed>
|
||||||
17
data/test_data/traff/DE-A115-PotsdamDrewitz-Nuthetal.xml
Normal file
17
data/test_data/traff/DE-A115-PotsdamDrewitz-Nuthetal.xml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<!-- From DE-RealWorldLargeFeed. -->
|
||||||
|
<!--
|
||||||
|
The route ends at a large junction, proceeds past the reference point, then
|
||||||
|
goes back down the wrong carriageway of the motorway.
|
||||||
|
-->
|
||||||
|
<feed>
|
||||||
|
<message expiration_time="2025-10-09T21:37:08+03:00" id="tmc:d.1.7:d.1.10292.p.1" receive_time="2025-10-09T21:17:08+03:00" update_time="2025-10-09T21:17:08+03:00">
|
||||||
|
<location directionality="ONE_DIRECTION" fuzziness="LOW_RES" road_class="MOTORWAY" road_name="Autobahnzubringer Magdeburg" road_ref="A115">
|
||||||
|
<from junction_name="Potsdam-Drewitz" junction_ref="5a">+52.352650 +13.140700</from>
|
||||||
|
<to junction_name="Nuthetal" junction_ref="7">+52.300201 +13.083500</to>
|
||||||
|
</location>
|
||||||
|
<events>
|
||||||
|
<event class="CONGESTION" type="CONGESTION_STATIONARY_TRAFFIC">
|
||||||
|
</event>
|
||||||
|
</events>
|
||||||
|
</message>
|
||||||
|
</feed>
|
||||||
18
data/test_data/traff/DE-B2R-SendlingSued-Passauerstrasse.xml
Normal file
18
data/test_data/traff/DE-B2R-SendlingSued-Passauerstrasse.xml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<!-- From DE-realworld5. -->
|
||||||
|
<!--
|
||||||
|
A combination of reference points on the opposite carriageway, high offroad cost,
|
||||||
|
allowing any road to be used and a low penalty results in a completely incorrect
|
||||||
|
location (through a residential area rather than along the opposite carriageway).
|
||||||
|
-->
|
||||||
|
<feed>
|
||||||
|
<message expiration_time="2025-10-09T21:37:08+03:00" id="tmc:d.1.15:d.1.22689.p.1" receive_time="2025-10-09T21:17:08+03:00" update_time="2025-10-09T21:17:08+03:00">
|
||||||
|
<location directionality="ONE_DIRECTION" fuzziness="LOW_RES" road_name="Mittlerer Ring" road_ref="B2R">
|
||||||
|
<from junction_name="München-Sendling-Süd">+48.110901 +11.518500</from>
|
||||||
|
<to junction_name="Passauerstraße">+48.110649 +11.534150</to>
|
||||||
|
</location>
|
||||||
|
<events>
|
||||||
|
<event class="CONGESTION" type="CONGESTION_QUEUE">
|
||||||
|
</event>
|
||||||
|
</events>
|
||||||
|
</message>
|
||||||
|
</feed>
|
||||||
Reference in New Issue
Block a user