docu(trimet): add configuration files

This commit is contained in:
dancingCycle 2022-02-19 14:31:52 -05:00
parent 9d0383adac
commit baf30dac5c
3 changed files with 39 additions and 0 deletions

View File

@ -4,4 +4,5 @@ Examples to setup OpenTripPlaner (OTP).
## Table of Contents
* [AVV](avv.md)
* [GOEVB](goevb.md)
* Trimet
* [VBN](vbn/vbn.md)

7
trimet/otp-config.json Normal file
View File

@ -0,0 +1,7 @@
// otp-config.json
{
"otpFeatures" : {
"APIBikeRental" : false,
"SandboxExampleAPIGraphStatistics" : true
}
}

31
trimet/router-config.json Normal file
View File

@ -0,0 +1,31 @@
// router-config.json
{
// Routing defaults are any public field or setter in the Java class
// org.opentripplanner.routing.api.request.RoutingRequest
"routingDefaults": {
"numItineraries": 6,
"walkSpeed": 2.0,
"stairsReluctance": 4.0,
"carDropoffTime": 240
},
"requestLogFile": "/var/otp/request.log",
"updaters": [
// GTFS-RT service alerts (frequent polling)
{
"type": "real-time-alerts",
"frequencySec": 30,
"url": "http://developer.trimet.org/ws/V1/FeedSpecAlerts/appID/0123456789ABCDEF",
"feedId": "TriMet"
},
// Polling for GTFS-RT TripUpdates)
{
"type": "stop-time-updater",
"frequencySec": 60,
// this is either http or file... shouldn't it default to http or guess from the presence of a URL?
"sourceType": "gtfs-http",
"url": "http://developer.trimet.org/ws/V1/TripUpdate/appID/0123456789ABCDEF",
"feedId": "TriMet"
}
]
}