-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with the stops data #11
Comments
Thanks for noting these issues, @jaimeorrego. I can confirm the same errors for Lisbon and Santiago. I believe this is happening because large bus systems have a lot of I tried decreasing the API request size from 10,000 items per page to 1,000 items per page, and this seemed to help things! There are 10x more API requests, but each is 10x smaller. I also increased the API retry limit from 5 to 20, just in case. Santiago looks better: Strangely, for Lisbon, it fails for me on today's date, but if I try this past Wednesday's date, the stop times for
I think I will add a new command line argument Does this sound good to you? Best, |
Thanks this is very helpful, I have been having both issues above working on Toronto, Canada area. The TTC operator seems to be too large and fails for all dates I have tried, even with the API query set to 1000 - could you test this on your end? the error I get is "[Errno 34] Result too large"
|
Thanks @AnthonyLovesBikes, I can confirm the same error for Toronto area. Yes, the TTC operator seems to be too large. Although, I have seen at least one example of somebody using this tool to visualize Toronto transit flows (they even wrote a program to convert transit frequency into audio!): See: https://rami-codes.github.io/2017/11/07/transitland-audiolizer/ Frankly, I am not sure if downloading massive schedules via the paginated transitland API is the best approach. It is much faster to download the raw GTFS zip file and process it locally with a python script. I would love to add a "drag and drop" capability to this tool, such that a user could decide to use the transitland API or to use a local GTFS zip file. Any thoughts on this functionality are welcome! Best, |
Thank you! Yes I agree a manual GTFS adder would be ideal. If can include multiple agencies that would be best.
I have messaged the other user to inquire how they made the TTC viz work... Will let you know if I learn more.
I am now having an issue with GO transit, though that one worked before for me. Can you let me know if that one works for you?
…Sent from my iPhone
On Apr 29, 2018, at 11:15 AM, Will Geary ***@***.***> wrote:
Thanks @AnthonyLovesBikes, I can confirm the same error for Toronto area. Yes, the TTC operator seems to be too large. Although, I have seen at least one example of somebody using this tool to visualize Toronto transit flows (they even wrote a program to convert transit frequency into audio!): See: https://rami-codes.github.io/2017/11/07/transitland-audiolizer/
Frankly, I am not sure if downloading massive schedules via the paginated transitland API is the best approach. It is much faster to download the raw GTFS zip file and process it locally with a python script. I would love to add a "drag and drop" capability to this tool, such that a user could decide to use the transitland API or to use a local GTFS zip file. Any thoughts on this functionality are welcome!
Best,
Will
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thank you @willgeary! by changing the request site it works fine. I am just entering the world of GTFS data and definitely the drag and drop option would be interesting. Maybe is not exactly the place in this API, but also would be nice to have a GTFS data processor, that let you after some variable setting obtain a output.csv (for example, the number of the route). The idea of course would use the data in other kind of application. Thanks! |
Great, glad to hear that things are working for you @jaimeorrego. I agree that a GTFS data processor would be nice. Frankly, I am considering whether that should belong within this project or as a standalone project. |
Hi, I agree that a option to run data locally would be better. Thanks for the api! |
Hello Will,
Thank you for the API it is very nice. I was testing it with different cities in the World, it worked very well in Portland, Or, but I found two issues in toher cities. I tested in Lisbon, Portugal using:
python transitflow.py --name=lisbon --bbox=-9.276933,38.592729,-8.940477,38.803201 --clip_to_bbox
When downloading the transit operators, the API found routes and stops but finds 0 schedule stop pairs. An example of one of the largest operators.
Another test I did was in Santiago, Chile. Here the API has problems downloading the stops data.
python transitflow.py --name=Santiago --bbox=-70.673777,-33.460993,-70.595499,-33.394518 --clip_to_bbox
And it seems it cannot connect:
I thinking in Lisbon case, it may be a problem with the structure of the GTFS data, and in Santiago maybe the file is too large?
Do you have any clues?
Thanks!
The text was updated successfully, but these errors were encountered: