-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-config.yml
116 lines (105 loc) · 3.41 KB
/
example-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
api:
host: http://localhost
path: /otp/routers/default
port: 8001
# 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). It also must be
### enabled to show the stored locations (see above).
### TODO: add another server-based strategy
persistence:
enabled: true
strategy: localStorage
map:
initLat: 45.52
initLon: -122.682
baseLayers:
- 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
hasRetinaSupport: true
- name: Stamen Toner Lite
url: http://tile.stamen.com/toner-lite/{z}/{x}/{y}.png
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>.'
# it is possible to leave out a geocoder config entirely. In that case only
# GPS coordinates will be used when finding the origin/destination.
# example config for a Pelias geocoder (https://pelias.io/)
geocoder:
apiKey: MAPZEN_KEY
boundary:
rect:
minLon: -123.2034
maxLon: -122.135
minLat: 45.273
maxLat: 45.7445
focusPoint:
lat: 45.5223452
lon: -122.6821804
# required geocoder type.
type: PELIAS
# This base URL is required as the libraries will default to using now-defunct
# mapzen urls
baseUrl: https://geocoder.example.com/pelias/v1
# example config for an ArcGIS geocoder
# (https://developers.arcgis.com/rest/geocode/api-reference/overview-world-geocoding-service.htm)
# WARNING: using the ArcGIS geocoder with a persistence strategy of
# `localStorage` will result in an error being thrown because ArcGIS
# requires the use of a paid account to store geocode results.
# See https://developers.arcgis.com/rest/geocode/api-reference/geocoding-free-vs-paid.htm
# geocoder:
# boundary:
# rect:
# minLon: -123.2034
# maxLon: -122.135
# minLat: 45.273
# maxLat: 45.7445
# focusPoint:
# lat: 45.5223452
# lon: -122.6821804
# # required geocoder type.
# type: ARCGIS
# Use this mode config for the enhanced Transit+ config
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 + Bike
bicycleModes:
- mode: BICYCLE
label: Own Bike
iconWidth: 18
routingTypes:
- key: ITINERARY
text: Exact Time
### Use this config for the standard mode selector
# modeGroups:
# - name: Transit
# modes:
# - TRAM
# - BUS
# - name: Walk/Bike
# modes:
# - WALK
# - BICYCLE