forked from OneBusAway/maglev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.json
More file actions
41 lines (41 loc) · 1.1 KB
/
config.example.json
File metadata and controls
41 lines (41 loc) · 1.1 KB
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
{
"$schema": "./config.schema.json",
"port": 4000,
"env": "development",
"api-keys": [
"test"
],
"protected-api-keys": [
"your-secure-test-key-here"
],
"exempt-api-keys": [
"org.onebusaway.iphone"
],
"rate-limit": 100,
"gtfs-static-feed": {
"url": "https://www.soundtransit.org/GTFS-rail/40_gtfs.zip",
"enable-gtfs-tidy": false
},
"gtfs-rt-feeds": [
{
"id": "sound-transit",
"agency-ids": [
"40"
],
"trip-updates-url": "https://api.pugetsound.onebusaway.org/api/gtfs_realtime/trip-updates-for-agency/40.pb?key=org.onebusaway.iphone",
"vehicle-positions-url": "https://api.pugetsound.onebusaway.org/api/gtfs_realtime/vehicle-positions-for-agency/40.pb?key=org.onebusaway.iphone"
},
{
"id": "metro-transit",
"agency-ids": [
"1"
],
"trip-updates-url": "https://api.pugetsound.onebusaway.org/api/gtfs_realtime/trip-updates-for-agency/1.pb?key=org.onebusaway.iphone",
"headers": {
"X-API-Key": "my-secret-key"
},
"refresh-interval": 60
}
],
"data-path": "./gtfs.db"
}