BannedStops not working as intended (doesnt work at all)
Gruz-20202 opened this issue · comments
Expected behavior
Banned stops are included while routing
Observed behavior
The parameter is ignored entirely
Version of OTP used (exact commit hash or JAR name)
otp-2.5.0 shaded jar
Data sets in use (links to GTFS and OSM PBF files)
https://www.wroclaw.pl/open-data/87b09b32-f076-4475-8ec9-6020ed1f9ac0/OtwartyWroclaw_rozklad_jazdy_GTFS.zip (gtfs for Wroclaw (Breslau), a city in western Poland)
https://we.tl/t-EmNbIyrsZq (pbf file)
Command line used to start OTP
java -Xmx3G -jar otp-2.5.0-shaded.jar --load --save
Router config and graph build config JSON
default
Steps to reproduce the problem
Was trying out via the graphical OTP interface and with the API, yet both seem to just ignore the bannedStops parameter
http://localhost:9999/otp/routers/default/plan?fromPlace=51.11776807739692%2C17.028481364250187&toPlace=51.11649519720638%2C17.052175998687748&time=12%3A50pm&date=05-13-2024&mode=TRANSIT%2CWALK&arriveBy=false&wheelchair=false&showIntermediateStops=true&bannedStops=1:1389&locale=en
I also tried the bannedStopsHard parameter with no results.
After browsing the issues feed I didn't find a viable solution. Also the feedID solution doesn't work for me. Any feedback is appreciated.
The REST API is deprecated and you should be using one of the GraphQL APIs: https://docs.opentripplanner.org/en/dev-2.x/apis/Apis/
That said, I don't believe that this functionality is implemented at all in OTP2 and we should say so in the docs.
The REST API is deprecated and you should be using one of the GraphQL APIs: https://docs.opentripplanner.org/en/dev-2.x/apis/Apis/
That said, I don't believe that this functionality is implemented at all in OTP2 and we should say so in the docs.
So is there a way to get that (bannedstops) to work if I downgrade the OTP version ?
OTP1 might support it but I'm not sure.
Is there any way to re-route the path via a request without changing the GTFS files or is it compleatly unsupported? (to ignore a certain 'stop')
I don't think it's possible. Come to the dev meeting to learn more: https://github.com/opentripplanner/OpenTripPlanner/blob/dev-2.x/CONTRIBUTING.md#developer-meetings