Skip to content

Commit

Permalink
update matsim and remove to detailed links from network again
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Nov 7, 2024
1 parent b60642e commit 50063fb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ input/network.osm: input/brandenburg.osm.pbf

# Detailed network includes bikes as well
$(osmosis) --rb file=$<\
--tf accept-ways bicycle=yes,designated highway=motorway,motorway_link,trunk,trunk_link,primary,primary_link,secondary_link,secondary,tertiary,motorway_junction,residential,living_street,unclassified,cycleway\
--tf accept-ways bicycle=designated highway=motorway,motorway_link,trunk,trunk_link,primary,primary_link,secondary_link,secondary,tertiary,motorway_junction,residential,living_street,unclassified,cycleway\
--bounding-polygon file="$p/area/area.poly"\
--used-node --wb input/network-detailed.osm.pbf

Expand Down Expand Up @@ -90,7 +90,7 @@ input/sumo.net.xml: input/network.osm
--output.original-names --output.street-names\
--osm.lane-access false --osm.bike-access false\
--osm.all-attributes\
--osm.extra-attributes smoothness,surface,crossing,tunnel,traffic_sign,bus:lanes,bus:lanes:forward,bus:lanes:backward,cycleway,cycleway:right,cycleway:left\
--osm.extra-attributes smoothness,surface,crossing,tunnel,traffic_sign,bus:lanes,bus:lanes:forward,bus:lanes:backward,cycleway,cycleway:right,cycleway:left,bicycle\
--proj "+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"\
--osm-files $< -o=$@

Expand Down
1 change: 1 addition & 0 deletions input/v6.4/berlin-v6.4.config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<param name="endTime" value="36:00:00"/>
<param name="stuckTime" value="30.0"/>
<param name="trafficDynamics" value="kinematicWaves"/>
<param name="linkDynamics" value="PassingQ"/>
<param name="vehiclesSource" value="modeVehicleTypesFromVehiclesData"/>
<param name="insertingWaitingVehiclesBeforeDrivingVehicles" value="true"/>
<param name="usePersonIdForMissingVehicleId" value="false"/>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<artifactId>matsim-all</artifactId>

<!-- PR-labelled release -->
<version>2025.0-PR3541</version>
<version>2025.0-PR3549</version>

<!-- snapshot == not recommended: rather use PR-labelled release!-->
<!-- <version>2025.0-SNAPSHOT</version>-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ private void matchWithNetwork(Path network) throws TransformException, IOExcepti
// Some links can not be matched
manager.addLinkFilter(l -> !l.getId().toString().startsWith("pt_"));
manager.addLinkFilter(l -> !NetworkUtils.getHighwayType(l).equals("service"));
manager.addLinkFilter(l -> !NetworkUtils.getHighwayType(l).equals("living_street"));

net = manager.applyFilters();
}
Expand Down

0 comments on commit 50063fb

Please sign in to comment.