diff --git a/README.md b/README.md index b5b2239..fd7757b 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,5 @@ Examples to setup OpenTripPlaner (OTP). ## Table of Contents * [AVV](avv.md) * [GOEVB](goevb.md) +* Trimet * [VBN](vbn/vbn.md) diff --git a/trimet/otp-config.json b/trimet/otp-config.json new file mode 100644 index 0000000..0b6f627 --- /dev/null +++ b/trimet/otp-config.json @@ -0,0 +1,7 @@ +// otp-config.json +{ + "otpFeatures" : { + "APIBikeRental" : false, + "SandboxExampleAPIGraphStatistics" : true + } +} diff --git a/trimet/router-config.json b/trimet/router-config.json new file mode 100644 index 0000000..5463937 --- /dev/null +++ b/trimet/router-config.json @@ -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" + } + ] +}