Skip to content

Commit

Permalink
added test refs #14422, #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 29, 2024
1 parent 50e43f8 commit b5e7202
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 0 deletions.
Empty file.
60 changes: 60 additions & 0 deletions tests/tools/import/MATSim/activity/matsim_plans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE population SYSTEM "http://www.matsim.org/files/dtd/population_v6.dtd">

<population desc="population written from streaming">

<attributes>
<attribute name="coordinateReferenceSystem" class="java.lang.String">
EPSG:25832
</attribute>
</attributes>


<!-- ====================================================================== -->

<person id="100300">
<plan selected="yes">
<activity type="home_25200" x="732605.95" y="5691004.5" end_time="07:01:00" >
</activity>
<leg mode="pt">
<attributes>
<attribute name="routingMode" class="java.lang.String">pt</attribute>
</attributes>
</leg>
<activity type="leisure_600" x="733045.0" y="5691859.83" start_time="07:03:00" max_dur="00:02:45" >
</activity>
<leg mode="pt">
<attributes>
<attribute name="routingMode" class="java.lang.String">pt</attribute>
</attributes>
</leg>
<activity type="other_3600" x="733473.91" y="5692288.74" start_time="07:14:11" max_dur="00:59:48" end_time="08:13:59" >
</activity>
<leg mode="pt">
<attributes>
<attribute name="routingMode" class="java.lang.String">pt</attribute>
</attributes>
</leg>
<activity type="leisure_600" x="733045.0" y="5691859.83" start_time="08:22:25" max_dur="00:06:35" >
</activity>
<leg mode="pt">
<attributes>
<attribute name="routingMode" class="java.lang.String">pt</attribute>
</attributes>
</leg>
<activity type="leisure_12000" x="734776.15" y="5693810.93" start_time="08:48:00" end_time="12:07:00" >
</activity>
<leg mode="pt">
<attributes>
<attribute name="routingMode" class="java.lang.String">pt</attribute>
</attributes>
</leg>
<activity type="leisure_6000" x="735531.13" y="5693076.83" start_time="12:18:00" end_time="14:00:00" >
</activity>
</plan>

</person>

<!-- ====================================================================== -->

</population>
1 change: 1 addition & 0 deletions tests/tools/import/MATSim/activity/options.tools
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--plan-file matsim_plans.xml -o out.rou.xml tools/import/matsim/matsim_importPlans.py
Empty file.
29 changes: 29 additions & 0 deletions tests/tools/import/MATSim/activity/routes.tools
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-29 10:18:17.874610 by matsim_importPlans.py v1_19_0+1081-50e43f85a52
options: <doubleminus>plan-file matsim_plans.xml -o out.rou.xml
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="car" vClass="passenger"/>
<vType id="bicycle" vClass="bicycle"/>

<trip id="100300_0" depart="triggered" fromLonLat="12.338531971825324,51.32269992163245" toLonLat="12.345381247289957,51.33019827321066"/>
<trip id="100300_1" depart="triggered" fromLonLat="12.345381247289957,51.33019827321066" toLonLat="12.351808020775046,51.33387254359802"/>
<trip id="100300_2" depart="triggered" fromLonLat="12.351808020775046,51.33387254359802" toLonLat="12.345381247289957,51.33019827321066"/>
<trip id="100300_3" depart="triggered" fromLonLat="12.345381247289957,51.33019827321066" toLonLat="12.371472066438269,51.34700028645829"/>
<trip id="100300_4" depart="triggered" fromLonLat="12.371472066438269,51.34700028645829" toLonLat="12.38180805562922,51.34009850507165"/>
<person id="100300" depart="0:0:0">
<stop lon="12.338531971825324" lat="51.32269992163245" until="07:01:00" actType="home_25200"/>
<ride lines="100300_0" toLonLat="12.345381247289957,51.33019827321066"/>
<stop lon="12.345381247289957" lat="51.33019827321066" until="None" actType="leisure_600"/>
<ride lines="100300_1" toLonLat="12.351808020775046,51.33387254359802"/>
<stop lon="12.351808020775046" lat="51.33387254359802" until="08:13:59" actType="other_3600"/>
<ride lines="100300_2" toLonLat="12.345381247289957,51.33019827321066"/>
<stop lon="12.345381247289957" lat="51.33019827321066" until="None" actType="leisure_600"/>
<ride lines="100300_3" toLonLat="12.371472066438269,51.34700028645829"/>
<stop lon="12.371472066438269" lat="51.34700028645829" until="12:07:00" actType="leisure_12000"/>
<ride lines="100300_4" toLonLat="12.38180805562922,51.34009850507165"/>
<stop lon="12.38180805562922" lat="51.34009850507165" until="14:00:00" actType="leisure_6000"/>
</person>
</routes>
3 changes: 3 additions & 0 deletions tests/tools/import/MATSim/testsuite.tools
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ bikes_walks

# import coordinates instead of edge ids
coordinates

# import activity end times
activity

0 comments on commit b5e7202

Please sign in to comment.