Hi there! Just discovered this project — so awesome, thanks! However I'm finding that it fails on larger datasets. The issue appears to be with how the transitland_api.py handles pagination.
For example, the metro rail of Wellington, New Zealand:
If I run
But if I change PER_PAGE to 3806 then there's no issue either. So it appears when the amount of schedule/stop pairs exceeds per_page limit then the download breaks... :(
Also, both those URLS for getting the schedule/stop data are fine. Will have a crack at fixing myself but just putting this out there is case anyone has any ideas!
Hi there! Just discovered this project — so awesome, thanks! However I'm finding that it fails on larger datasets. The issue appears to be with how the transitland_api.py handles pagination.
For example, the metro rail of Wellington, New Zealand: If I run
I can see that there are 10 routes, 62 stops and 3806 schedule stop pairs, and I get no issue.
Now I go to line 17 in transitflow.py and change
PER_PAGE
from 10000 to 3805, rerun the above command and get a download error:But if I change
PER_PAGE
to 3806 then there's no issue either. So it appears when the amount of schedule/stop pairs exceeds per_page limit then the download breaks... :(Also, both those URLS for getting the schedule/stop data are fine. Will have a crack at fixing myself but just putting this out there is case anyone has any ideas!