From b526bf2d50c2efed438dbfe5568d331dbef2a280 Mon Sep 17 00:00:00 2001 From: rakow Date: Wed, 15 May 2024 21:31:41 +0200 Subject: [PATCH] add more standard features --- .../application/prepare/network/params/NetworkParamsOpt.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contribs/application/src/main/java/org/matsim/application/prepare/network/params/NetworkParamsOpt.java b/contribs/application/src/main/java/org/matsim/application/prepare/network/params/NetworkParamsOpt.java index 0db7bf41945..e9185fc7a0f 100644 --- a/contribs/application/src/main/java/org/matsim/application/prepare/network/params/NetworkParamsOpt.java +++ b/contribs/application/src/main/java/org/matsim/application/prepare/network/params/NetworkParamsOpt.java @@ -116,6 +116,8 @@ private static Feature createDefaultFeature(Link link) { ft.put("speed", NetworkUtils.getAllowedSpeed(link)); ft.put("num_lanes", link.getNumberOfLanes()); ft.put("length", link.getLength()); + ft.put("capacity", link.getCapacity()); + ft.put("freespeed", link.getFreespeed()); for (Map.Entry e : link.getAttributes().getAsMap().entrySet()) { String key = e.getKey();