-
Notifications
You must be signed in to change notification settings - Fork 2
/
transiter_config_nyc_subway.yaml
111 lines (95 loc) · 2.37 KB
/
transiter_config_nyc_subway.yaml
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
name: New York City Subway
requirements:
packages:
- transiter_nycsubway
settings:
- mta_api_key
feeds:
gtfsstatic:
http:
url: 'http://web.mta.info/developers/data/nyct/subway/google_transit.zip'
parser:
built_in: GTFS_STATIC
options:
transfers:
strategy: GROUP_STATIONS
exceptions:
- - "254" # Livonia Av and Julius St.
- "L26"
- - "B08" # Lexington Av/63rd St and Lexington Av/59th St.
- "629"
- - "B08" # Lexington Av/63rd St and Lexington Av/59th St.
- "R11"
required_for_install: true
auto_update:
enabled: false
DirectionRules:
http:
url: 'http://web.mta.info/developers/data/nyct/subway/Stations.csv'
parser:
custom: 'transiter_ny_mta:StationsCsvParser'
required_for_install: true
auto_update:
enabled: false
gtfsrealtime-alerts:
http:
url: "https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys%2Fsubway-alerts"
headers:
X-API-KEY: "{{ mta_api_key }}"
parser:
custom: "transiter_ny_mta:AlertsParser"
auto_update:
period: {{ update_periodicity or '5' }} seconds
{%
for id_, mta_url_postfix in (
("123456", ""),
("ACE", "-ace"),
("BDFM", "-bdfm"),
("G", "-g"),
("JZ", "-jz"),
("L", "-l"),
("NQRW", "-nqrw"),
("SIR", "-si")
)
%}
{{ id_ }}:
http:
url: "https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct%2Fgtfs{{ mta_url_postfix }}"
headers:
X-API-KEY: "{{ mta_api_key }}"
parser:
custom: 'transiter_ny_mta:SubwayTripsParser'
auto_update:
period: {{ update_periodicity or '5' }} seconds
{% endfor %}
service_maps:
any_time:
source: SCHEDULE
threshold: 0.05
use_for_stops_in_route: true
weekday_day:
source: SCHEDULE
conditions:
weekday: true
starts_later_than: 7
ends_earlier_than: 19
threshold: 0.1
use_for_routes_at_stop: true
weekday_night:
source: SCHEDULE
conditions:
weekday: true
starts_later_than: 0
ends_earlier_than: 6
threshold: 0.1
weekend:
source: SCHEDULE
conditions:
weekend: true
starts_later_than: 7
ends_earlier_than: 19
threshold: 0.1
realtime:
source: REALTIME
use_for_stops_in_route: true
use_for_routes_at_stop: true