mapnificent / mapnificent_cities

City data repository for mapnificent.net
https://www.mapnificent.net
49 stars 42 forks source link

Nairobi not working? #53

Open Gkreindler opened 3 years ago

Gkreindler commented 3 years ago

It seems that the map for Nairobi is not working (it always shows the same circle irrespective of selected duration.

Does anyone know why this might be?

I tested in multiple browsers. Other cities work.

https://www.mapnificent.net/nairobi/#12/-1.2832/36.8164/3660/-1.2833/36.8167 image

od-ms commented 3 years ago

Hi! The same problem occurs in Westfalen-Lippe: https://www.mapnificent.net/westfalen-lippe/#12/51.9632/7.6285/900/51.9629/7.6287

I did some debugging and had a look at the HTTP requests sent by the page, and it looks like there is something wrong with the bin-files of nairobi and westfalen-lippe:

Bin files of "broken" cities that only show one circle: https://www.mapnificent.net/nairobi/nairobi.bin => only a few bytes in size.. it contains a zip file name..? https://www.mapnificent.net/westfalen-lippe/westfalen-lippe.bin => same here, almost empty file.

Working example: Aachen is working, and the bin file looks totally different: https://www.mapnificent.net/aachen/aachen.bin => 122kb in size

Digging deeper..

Checking the original GTFS source file for Westfalen-Lippe: Look at the markdown .. https://raw.githubusercontent.com/mapnificent/mapnificent_cities/master/westfalen-lippe/westfalen-lippe.md ==> Oops! The link to the GTFS is broken: https://www.opendata-oepnv.de/dataset/121b0b37-b7a8-4663-9eaf-5ed3d38fc38a/resource/e7cb8aa6-7d5c-4f54-975b-75d3d872b1d0/download/gtfs-nwl-20190720.zip

Checking nairobi: Same here: Wrong link in markdown: https://raw.githubusercontent.com/mapnificent/mapnificent_cities/master/nairobi/nairobi.md => http://www.digitalmatatus.com/pdf/GTFS_DATA_2.zip => no gtfs file there

So the solution would be: Find the correct GTFS url for Nairobi and Münster and replace the broken links in these files: https://raw.githubusercontent.com/mapnificent/mapnificent_cities/master/nairobi/nairobi.md https://raw.githubusercontent.com/mapnificent/mapnificent_cities/master/westfalen-lippe/westfalen-lippe.md