Skip to content
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

v1 API deprecated #18

Open
adrianleh opened this issue Apr 19, 2023 · 1 comment
Open

v1 API deprecated #18

adrianleh opened this issue Apr 19, 2023 · 1 comment

Comments

@adrianleh
Copy link

Hi,

unfortunately it seems the project is broken due to the v1 API being deprecated and the schedule stop pair endpoint is no longer working. (transitland/transitland#396 (reply in thread)). It would be great if it could be updated to use the v2 APIs.

@AlexanderPuckhaber
Copy link

I'm trying to update the project to v2, I've made a fork: https://github.com/AlexanderPuckhaber/transitland-processing-animation/tree/api_v2_attempt

Unfortunately, the data provider transit.land deprecated the ScheduleStopPair object and associated endpoint. That appears to be necessary for the motion of the vehicles.

See: https://www.transit.land/news/2019/10/17/tlv2.html#gradual-deprecation-of-tlv1

Maybe there is an alternative way to get the trip information of "when did the vehicle stop at each stop", but I'm not sure.

We would need equivalent functionality to the origin/destination stop/arrival times found in the v1 API

Transitland v2 has Trips: https://www.transit.land/documentation/rest-api/trips

However, I am unable to get the stop_times array in the response because I cannot figure out how to request "a single trip by ID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants