We recommend linking back to the developer page or pulling from the endpoint in your code (the static GTFS has no API key) so updates get reflected in a timely manner.
As for the function itself, be advised that it is possible to schedule any line at any stop and that is even more likely to happen in real time with reroutes.