Skip to content

Commit 23f32ce

Browse files
authored
Merge pull request #501 from HSLdevcom/fix-flex-bus-routing
Add flex settings for flex bus routing
2 parents 79f601b + c77b9df commit 23f32ce

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

hsl/otp-config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"ActuatorAPI": true,
1010
"AsyncGraphQLFetchers": false,
1111
"Emission": true,
12-
"DebugRasterTiles": true
12+
"DebugRasterTiles": true,
13+
"FlexRouting": true
1314
}
1415
}

hsl/router-config.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
"boardCost": 120
2323
},
2424
"accessEgress": {
25-
"maxDuration": "1h"
25+
"maxDuration": "1h",
26+
"penalty": {
27+
"FLEXIBLE": {
28+
"timePenalty": "10m + 1.9t",
29+
"costFactor": 2
30+
}
31+
}
2632
},
2733
"maxDirectStreetDuration": "90m",
2834
"maxDirectStreetDurationForMode": {
@@ -97,6 +103,12 @@
97103
"gtfsApi": {
98104
"tracingTags": ["digitransit-subscription-id"]
99105
},
106+
"flex": {
107+
"maxTransferDuration": "5m",
108+
"maxFlexTripDuration": "30m",
109+
"maxAccessWalkDuration": "5m",
110+
"maxEgressWalkDuration": "5m"
111+
},
100112
"transit": {
101113
"maxSearchWindow": "8h",
102114
"pagingSearchWindowAdjustments": ["8h", "2h", "2h", "2h", "2h"],

0 commit comments

Comments
 (0)