OpenTripPlanner/doc/user/examples/skanetrafiken/router-config.json
2024-07-24 15:36:14 +02:00

61 lines
No EOL
1.6 KiB
JSON

{
"routingDefaults": {
"itineraryFilters": {
"filterItinerariesWithSameFirstOrLastTrip": true
},
"transferSlack": "3m",
"waitReluctance": 0.175,
"walk": {
"reluctance": 5
},
"maxDirectStreetDuration": "3700s"
},
"transit": {
"pagingSearchWindowAdjustments": [
"24h",
"0h"
],
"stopBoardAlightDuringTransferCost": {
"DISCOURAGED": 3000,
"ALLOWED": 150,
"RECOMMENDED": 60,
"PREFERRED": 0
}
},
"updaters": [
{
"type": "siri-azure-et-updater",
"topic": "<topic_name>",
"feedId": "<feed_id>",
"servicebus-url": "<service_bus_url>",
// Set custom hour for when operating day date breaks
// In this case 04:00 every night,
// so that 2022-04-21 03:00 will still be operating day date 2022-04-20
"customMidnight": 4,
"fuzzyTripMatching": false,
"history": {
"url": "<history_endpoint_url>",
// Get all real-time history for current operating day date
"fromDateTime": "-P0D",
"timeout": 300000
}
},
{
"type": "siri-azure-sx-updater",
"topic": "<topic_name>",
"feedId": "<feed_id>",
"authenticationType": "FederatedIdentity",
"fullyQualifiedNamespace": "<fully_qualified_namespace>",
"customMidnight": 4,
"history": {
"url": "<history_endpoint_url>",
// Previous operating day date
"fromDateTime": "-P1D",
// Next operating day date
"toDateTime": "P1D",
// timeout in miliseconds
"timeout": 300000
}
}
]
}