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

ZVV: de.schildbach.pte.exception.NotFoundException: https://online.fahrplan.zvv.ch/bin/mgate.exe #606

Closed
Baerbeisser opened this issue Nov 27, 2024 · 11 comments

Comments

@Baerbeisser
Copy link

Query

  • NetworkId: ZVV
  • From: Location{STATION, 8505000, 47.0501790/8.3101860, name=Luzern, products=[REGIONAL_TRAIN, SUBURBAN_TRAIN, BUS, FERRY]}
  • Via: null
  • To: Location{STATION, 8506000, 47.5004210/8.7233750, name=Winterthur, products=[REGIONAL_TRAIN, SUBURBAN_TRAIN, BUS]}
  • Date: Wed Nov 27 11:42:37 GMT+01:00 2024
  • Departure: true
  • Products: [HIGH_SPEED_TRAIN, REGIONAL_TRAIN, SUBURBAN_TRAIN, SUBWAY, TRAM, BUS, FERRY, CABLECAR, ON_DEMAND]
  • Optimize for: LEAST_CHANGES
  • Walk Speed: NORMAL

Error

de.schildbach.pte.exception.NotFoundException: https://online.fahrplan.zvv.ch/bin/mgate.exe
de.schildbach.pte.util.HttpClient.getInputStream(HttpClient.java:296)
de.schildbach.pte.util.HttpClient.get(HttpClient.java:215)
de.schildbach.pte.AbstractHafasClientInterfaceProvider.jsonTripSearch(AbstractHafasClientInterfaceProvider.java:588)

Additional information

mgate.exe? On Android?

@schildbach
Copy link
Owner

The ZVV server is of course not running on Android.

@Baerbeisser
Copy link
Author

Wait, they use Windows Server exposed to the public? 😰

@schildbach
Copy link
Owner

It's not that uncommon, I guess.

@schildbach
Copy link
Owner

Regarding this issue, the ZVV seems to have switched their Hafas to using a proxy at https://app-prod-routing.viadi-zero.ch/v1/hafasproxy/. At the moment, PTE has no support for that API. Maybe the mobile app is still using the raw API and could be reversed?

@derhuerst
Copy link

hafas-client equivalent issue: public-transport/hafas-client#322 (comment)

@emojized
Copy link

can we create a new provider for https://transport.opendata.ch/ I teached it in PHP but I am not proficient in Java.

@emojized
Copy link

is this something you planning our should i try it myself? the problem is i was really reliant on öffi here in switzerland, found out even lucerne does not work.

@lsr1
Copy link

lsr1 commented Dec 13, 2024

i was really reliant on öffi here in switzerland
Just came here to say "same here, for Zurich".
However I totally understand that this is a FOSS volunteer project. If I can help with a EUR donation via SEPA, plz contact me.

@schildbach
Copy link
Owner

There is some discussion going on in the Öffi Matrix room. Feel free to drop by and join the discussion.

https://matrix.to/#/#öffi:schildbach.de

@derhuerst
Copy link

transport-apis has been adapted to the latest ZVV endpoint, so public-transport-enabler could pull the data from there.

cc @schildbach

@schildbach
Copy link
Owner

Thanks! Fixed via 81b1122.

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

5 participants