-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.json
More file actions
60 lines (57 loc) · 1.54 KB
/
config.example.json
File metadata and controls
60 lines (57 loc) · 1.54 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"default_polling_interval": 1,
"default_timeout": 30,
"default_max_retries": 3,
"redis_url": "redis://user:password@redis.example.org:6379",
"operators": [
{
"name": "Busitalia Veneto S.p.A. - Bacino di Padova",
"slug": "busitalia_veneto_padua",
"enable": true,
"filename": "busitalia_veneto_padua.js",
"avl": [
{
"enable": true,
"login": {
"url": "https://api.busitalia.example.org/v1/auth/login",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"username": "your-username",
"password": "your-password"
},
"vehicles": {
"url": "https://api.busitalia.example.org/v1/vehicles",
"method": "GET",
"headers": {
"Content-Type": "application/json"
}
}
}
],
"gtfsrt": [
{
"enable": true,
"label": "tram",
"username": "gtfs-username",
"password": "gtfs-password",
"feed_url": "https://gtfs.example.org/vehicle-positions-tram.pb"
},
{
"enable": true,
"label": "bus",
"username": "gtfs-username",
"password": "gtfs-password",
"feed_url": "https://gtfs.example.org/vehicle-positions-bus.pb"
}
],
"siri": [
{
"enable": false,
"endpoint": "https://api.busitalia.example.org/v1/siri-feed"
}
]
}
]
}