This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.yml
378 lines (337 loc) · 10.6 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
# react-router config, for URL routing (not to be confused with multimodal/OTP routing)
#reactRouter:
# If app is to be deployed to a URL subdirectory (e.g. http://foo.bar/app), specify the path here:
#basename: map
branding: trimet
homeTimezone: America/Los_Angeles
title: TriMet MOD OTP Demo
# Default OTP API
api:
host: https://trimet-otp.ibi-transit.com
# host: http://localhost:8001 # For testing against a local OTP instance
path: /otp/routers/default
# Alternate TransitIndex API
alternateTransitIndex:
apiRoot: https://newplanner.trimet.org/ws/ti/v0/
services:
- stops
- stops/routes
- routes
# Enabled multimodal routing types (e.g. interary, profile)
routingTypes:
- key: ITINERARY
text: Exact Time
# Delete/uncomment the following block to disable profile routing
#- key: PROFILE
# text: Time Window
# api: # Specifies a different API endpoint for profile routing
# host: https://trimet-modeify.conveyal.com
# path: /api
# Show/hide elevation profile chart for walk/bike legs
elevationProfile: true
# Provide a list of operators to enhance the user experience for multi-agency
# implementations. The order of the agencies will dictate the order that routes
# appear in the route viewer. Also, optionally provide operator logos to appear
# in narrative itinerary (matched on agency_id). Note: these logos will
# override the values found in agency.txt#agency_branding_url.
transitOperators:
- feedId: TriMet
agencyId: PSC
logo: https://d2tyb7byn1fef9.cloudfront.net/psc.png
- feedId: TriMet
agencyId: TRIMET
name: TriMet
logo: http://news.trimet.org/wordpress/wp-content/uploads/2019/04/TriMet-logo-300x300.png
- feedId: TriMet
agencyId: TRAM
logo: https://d2tyb7byn1fef9.cloudfront.net/tram.png
- feedId: "1"
agencyId: "1"
name: C-TRAN
logo: https://d2tyb7byn1fef9.cloudfront.net/ctran.png
defaultRouteColor: ffffff
defaultRouteTextColor: '000000'
longNameSplitter: ' - '
order: 9999999
# Add suggested locations to be shown as options in the form view.
# locations:
# - id: 'airport'
# icon: 'plane'
# name: 'Portland International Airport (PDX)'
# lat: 45.587579
# lon: -122.593084
# - id: 'zoo'
# icon: building
# lat: 45.51010444232195
# lon: -122.71607145667079
# name: Oregon Zoo, Portland, OR
### The persistence setting is used to enable the storage of places (home, work),
### recent searches/places, user overrides, and favorite stops. Currently the
### only strategy is localStorage (which is used by default)
### TODO: add another server-based strategy
persistence:
enabled: true
strategy: localStorage
# Map config
map:
# Enabled map views
views:
- type: DEFAULT
text: Map View
# Delete/uncomment the following block to disable the stylized map
#- type: STYLIZED
# text: Network View
# Default map center
initLat: 45.52
initLon: -122.682
# closer-in zoom levels don't have any tiles that could be rendered by
# TriMet's tile service
maxZoom: 19
# Base layers for default map
baseLayers:
- name: Streets
url: //tile{s}.trimet.org/tilecache/tilecache.py/1.0.0/currentOSM/{z}/{x}/{y}
attribution: 'Map tiles: <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
maxZoom: 20
# - name: Streets
# url: //cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}@2x.png
# subdomains: 'abcd'
# attribution: 'Map tiles: © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, © <a href="https://carto.com/attributions">CARTO</a>'
# maxZoom: 20
- name: Aerials
url: //tile{s}.trimet.org/tilecache/tilecache.py/1.0.0/hybridOSM/{z}/{x}/{y}
attribution: 'Map tiles: <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
maxZoom: 20
overlays:
# real-time vehicles config
- type: vehicles
name: Real-Time Buses and Trains
api: https://maps.trimet.org/gtfs/rt/vehicles
#pauseAnimationOnZoom: false # note: when true, MOD+vehicles has issues with multiple (additive) ws calls
refresh: 5
default: 'all'
- type: zipcar
name: Zipcar Locations
api: https://newplanner.trimet.org/ws/carshare/zipcar/data.json
- type: bike-rental
name: BIKETOWN Locations
modes:
- BICYCLE_RENT
mapSymbols:
- maxZoom: 12
minZoom: 0
type: circle
pixels: 3
fillColor: "#FF2E28"
dockStrokeColor: "#000000"
- maxZoom: 15
minZoom: 13
type: circle
pixels: 5
fillColor: "#FF2E28"
dockStrokeColor: "#000000"
- maxZoom: 20
minZoom: 16
fillColor: "#FF2E28"
dockStrokeColor: "#000000"
type: hubAndFloatingBike
- type: micromobility-rental
name: Bird E-scooter Locations
modes:
- MICROMOBILITY_RENT
companies:
- BIRD
mapSymbols:
- maxZoom: 12
minZoom: 0
type: circle
pixels: 3
fillColor: "#656565"
strokeColor: "#CCCCCC"
- maxZoom: 15
minZoom: 13
type: circle
pixels: 5
fillColor: "#656565"
strokeColor: "#CCCCCC"
- maxZoom: 20
minZoom: 16
fillColor: "#656565"
type: marker
- type: micromobility-rental
name: Lime E-scooter Locations
modes:
- MICROMOBILITY_RENT
companies:
- LIME
mapSymbols:
- maxZoom: 12
minZoom: 0
type: circle
pixels: 3
fillColor: "#656565"
strokeColor: "#CCCCCC"
- maxZoom: 15
minZoom: 13
type: circle
pixels: 5
fillColor: "#656565"
strokeColor: "#CCCCCC"
- maxZoom: 20
minZoom: 16
fillColor: "#656565"
type: marker
- type: micromobility-rental
name: Razor E-scooter Locations
modes:
- MICROMOBILITY_RENT
companies:
- RAZOR
mapSymbols:
- maxZoom: 12
minZoom: 0
type: circle
pixels: 3
fillColor: "#656565"
strokeColor: "#CCCCCC"
- maxZoom: 15
minZoom: 13
type: circle
pixels: 5
fillColor: "#656565"
strokeColor: "#CCCCCC"
- maxZoom: 20
minZoom: 16
fillColor: "#656565"
type: marker
- type: micromobility-rental
name: Spin E-scooter Locations
modes:
- MICROMOBILITY_RENT
companies:
- SPIN
mapSymbols:
- maxZoom: 12
minZoom: 0
type: circle
pixels: 3
fillColor: "#656565"
strokeColor: "#CCCCCC"
- maxZoom: 15
minZoom: 13
type: circle
pixels: 5
fillColor: "#656565"
strokeColor: "#CCCCCC"
- maxZoom: 20
minZoom: 16
fillColor: "#656565"
type: marker
- type: park-and-ride
name: Park & Ride Locations
maxTransitDistance: 1000
modes:
- CAR_PARK
- type: stops
name: Transit Stops
visible: true
geocoder:
baseUrl: https://ws-st.trimet.org/peliaswrap/v1
maxNearbyStops: 6
type: PELIAS
boundary:
rect:
minLon: -123.2034
maxLon: -122.135
minLat: 45.273
maxLat: 45.7445
# Mode selector configuration
modes:
transitModes:
- mode: BUS
label: Bus
- mode: TRAM
label: MAX & Streetcar
- mode: RAIL
label: WES
- mode: GONDOLA
label: Aerial Tram
accessModes:
- mode: BICYCLE
label: Transit + Personal bike
- mode: BICYCLE_RENT
label: Transit + BIKETOWN
company: BIKETOWN
- mode: MICROMOBILITY_RENT
label: Transit + E-scooter
- mode: CAR_PARK
label: Park & Ride
- mode: CAR_HAIL
label: Transit + Uber
company: UBER
showWheelchairSetting: false
# which exclusive modes to show. This involves using a single mode and no
# transit for the duration of the trip. Further configurations of
# `bicycleModes`, `micromobilityModes` and/or `carModes` are needed as
# desired, but no extra configuration is needed for a WALK exclusive mode.
exclusiveModes:
- WALK
- BICYCLE
bicycleModes:
- mode: BICYCLE
label: Own Bike
iconWidth: 18
- mode: BICYCLE_RENT
label: BIKETOWN
iconWidth: 36
# A list of private transportation operators. These are either companies that
# provide rental vehicles or transportation network companies. Companies that
# have multiple modes of transport should have all modes listed as a string with
# commas. For example: BICYCLE_RENT,MICROMOBILITY_RENT.
companies:
- id: BIKETOWN
label: BIKETOWN
modes: BICYCLE_RENT
- id: UBER
label: Uber
modes: CAR_HAIL
- id: BIRD
label: Bird
modes: MICROMOBILITY_RENT
- id: LIME
label: Lime
modes: MICROMOBILITY_RENT
- id: RAZOR
label: Razor
modes: MICROMOBILITY_RENT
- id: SPIN
label: Spin
modes: MICROMOBILITY_RENT
errorMessages:
- id: 404
msg: Sorry, we couldn't find any transit or rideshare/carshare options at the time and/or location you chose. Please try again later, or change the settings of your trip.
modes:
- CAR_HAIL
- CAR_RENT
- id: 405
msg: Sorry, we couldn't find any transit or rideshare/carshare options at the time and/or location you chose. Please try again later, or change the settings of your trip.
modes:
- CAR_HAIL
- CAR_RENT
- id: 480
msg: No available transit routes or rideshare/carshare service at origin.
reportIssue:
mailto: [email protected]
analytics:
google:
globalSiteTag: UA-133677388-1
language:
storageDisclaimer: Any preferences, places, or settings you opt to save will be stored in the local storage of your browser. TriMet will not have access to knowledge about your home, work, or any other location. At any point you can opt to turn off remembering recent places/searches and clear your saved home/work locations and favorite stops.
routeViewer: Route Viewer
routeViewerDetails: Select a route to display it on the map and to view more information about the route.
tripViewer: Trip Viewer
stopViewer: TransitTracker
dateTime:
timeFormat: h:mm a
dateFormat: MM/DD/YYYY
longDateFormat: MMMM D, YYYY