Skip to content

Commit 55c26f8

Browse files
committed
fix(config): update example config
1 parent 68d665c commit 55c26f8

File tree

1 file changed

+42
-13
lines changed

1 file changed

+42
-13
lines changed

example-config.yml

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
api:
2-
host: http://trimet.dev.conveyal.com
2+
host: https://trimet-otp.ibi-transit.com
33
path: /otp/routers/default
4-
port: 8001
4+
# port: 8001
55

66
map:
77
initLat: 45.52
88
initLon: -122.682
99
baseLayers:
1010
- name: Streets
11-
url: http://tile.stamen.com/terrain/{z}/{x}/{y}.png
12-
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <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>.'
11+
url: //cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}@2x.png
12+
subdomains: 'abcd'
13+
attribution: 'Map tiles: &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, &copy; <a href="https://carto.com/attributions">CARTO</a>'
14+
maxZoom: 20
1315
- name: Stamen Toner Lite
1416
url: http://tile.stamen.com/toner-lite/{z}/{x}/{y}.png
1517
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <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>.'
@@ -28,12 +30,39 @@ geocoder:
2830
# Optional custom Pelias instance (defaults to Mapzen Search)
2931
# baseUrl: https://geocoder.example.com/pelias/v1
3032

31-
modeGroups:
32-
- name: Transit
33-
modes:
34-
- TRAM
35-
- BUS
36-
- name: Walk/Bike
37-
modes:
38-
- WALK
39-
- BICYCLE
33+
# Use this mode config for the enhanced Transit+ config
34+
modes:
35+
transitModes:
36+
- mode: BUS
37+
label: Bus
38+
- mode: TRAM
39+
label: MAX & Streetcar
40+
- mode: RAIL
41+
label: WES
42+
- mode: GONDOLA
43+
label: Aerial Tram
44+
45+
accessModes:
46+
- mode: BICYCLE
47+
label: Transit + Bike
48+
49+
bicycleModes:
50+
- mode: BICYCLE
51+
label: Own Bike
52+
iconWidth: 18
53+
54+
55+
routingTypes:
56+
- key: ITINERARY
57+
text: Exact Time
58+
59+
### Use this config for the standard mode selector
60+
# modeGroups:
61+
# - name: Transit
62+
# modes:
63+
# - TRAM
64+
# - BUS
65+
# - name: Walk/Bike
66+
# modes:
67+
# - WALK
68+
# - BICYCLE

0 commit comments

Comments
 (0)