Skip to content

Commit 951ac94

Browse files
Lots of new Turkish cities (#2286)
* Lots of new Turkish cities * Update tr.json Remove unnecessary fixes, update konya, skip some unusable feeds and remove empty ones * Oversight * Oversight 2 Why wouldn't json support trailing commas and comments btw? People should ditch it already * Move Konya feed to dropbox It seems like the municipality is banning foreign requests so I uploaded it to dropbox
1 parent 4a97470 commit 951ac94

2 files changed

Lines changed: 122 additions & 3 deletions

File tree

feeds/tr.json

Lines changed: 121 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
{
5454
"name": "konya",
5555
"type": "http",
56-
"url": "https://acikveri.konya.bel.tr/tr/dataset/c2e034e6-e015-49c6-8eec-6e2f7de9c105/resource/5742b7bd-3cbf-4784-bee1-f949fc0ca118/download/gtfs_07_2024.zip"
56+
"url": "https://dl.dropbox.com/scl/fi/zhu6iewp6xd8u5kp85m28/konya.zip?rlkey=4ev61metqou3vduiy17u8xaee"
5757
},
5858
{
5959
"name": "kocaeli",
@@ -78,7 +78,6 @@
7878
"name": "gaziantep",
7979
"type": "http",
8080
"url": "https://acikveri.gaziantep.bel.tr/dataset/12d26c98-edc5-4be3-8988-c753764b84f4/resource/b3254aa0-359e-4b7c-87a3-d5d56ad27353/download/attached_gtfs.zip",
81-
"fix": true,
8281
"http-options": {
8382
"ignore-tls-errors": true
8483
}
@@ -94,6 +93,126 @@
9493
"type": "url",
9594
"spec": "gtfs-rt",
9695
"url": "https://rt.flix.baguette.pirnet.si/rt.pb"
96+
},
97+
{
98+
"name": "nigde",
99+
"type": "http",
100+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/nigde.zip"
101+
},
102+
{
103+
"name": "adana",
104+
"type": "http",
105+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/adana.zip",
106+
"fix": true
107+
},
108+
{
109+
"name": "alanya",
110+
"type": "http",
111+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/alanya.zip",
112+
"skip": true,
113+
"skip-reason": "trips.txt doesn't exist"
114+
},
115+
{
116+
"name": "alapli",
117+
"type": "http",
118+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/alapli.zip",
119+
"skip": true,
120+
"skip-reason": "routes.txt doesn't exist"
121+
},
122+
{
123+
"name": "burdur",
124+
"type": "http",
125+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/burdur.zip"
126+
},
127+
{
128+
"name": "canakkale",
129+
"type": "http",
130+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/canakkale.zip",
131+
"fix": true
132+
},
133+
{
134+
"name": "duzce",
135+
"type": "http",
136+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/duzce.zip",
137+
"fix": true
138+
},
139+
{
140+
"name": "edirne",
141+
"type": "http",
142+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/edirne.zip",
143+
"skip": true,
144+
"skip-reason": "trips.txt doesn't exist"
145+
},
146+
{
147+
"name": "eregli",
148+
"type": "http",
149+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/eregli.zip",
150+
"skip": true,
151+
"skip-reason": "trips.txt doesn't exist"
152+
},
153+
{
154+
"name": "erzurum",
155+
"type": "http",
156+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/erzurum.zip",
157+
"fix": true
158+
},
159+
{
160+
"name": "kastamonu",
161+
"type": "http",
162+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/kastamonu.zip",
163+
"fix": true
164+
},
165+
{
166+
"name": "kirklareli",
167+
"type": "http",
168+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/kirklareli.zip",
169+
"fix": true
170+
},
171+
{
172+
"name": "luleburgaz",
173+
"type": "http",
174+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/luleburgaz.zip",
175+
"fix": true
176+
},
177+
{
178+
"name": "mardin",
179+
"type": "http",
180+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/mardin.zip",
181+
"fix": true
182+
},
183+
{
184+
"name": "mugla",
185+
"type": "http",
186+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/mugla.zip",
187+
"fix": true
188+
},
189+
{
190+
"name": "ordu",
191+
"type": "http",
192+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/ordu.zip"
193+
},
194+
{
195+
"name": "osmaniye",
196+
"type": "http",
197+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/osmaniye.zip"
198+
},
199+
{
200+
"name": "safranbolu",
201+
"type": "http",
202+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/safranbolu.zip"
203+
},
204+
{
205+
"name": "sivas",
206+
"type": "http",
207+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/sivas.zip",
208+
"skip": true,
209+
"skip-reason": "trips.txt doesn't exist"
210+
},
211+
{
212+
"name": "tokat",
213+
"type": "http",
214+
"url": "https://github.com/Egezenn/kk-gtfs/raw/main/data/tokat.zip",
215+
"fix": true
97216
}
98217
]
99218
}

src/transitland.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self):
2020
def load(path: Path):
2121
atlas = Atlas()
2222
for f in Path(path / "feeds").iterdir():
23-
for feed in json.load(open(f, "r"))["feeds"]:
23+
for feed in json.load(open(f, "r", encoding="utf-8"))["feeds"]:
2424
atlas.by_id[feed["id"]] = feed
2525

2626
return atlas

0 commit comments

Comments
 (0)