Closed szoGGun closed 1 year ago
It seems like the PKP endpoint works every once in a while. When I tried it from within the hafas-client
repo with the following loop (fish shell), it worked in ~30% of the cases.
git clone https://github.com/public-transport/hafas-client.git
cd hafas-client
while true; ./tools/debug-cli/cli.js pkp locations 'katowice' | jq; sleep 10; end
Unfortunately, this is something that we can't do anything about, except complain maybe that their app is broken because of this. (Don't complain that you can't access their HAFAS API, as it is unofficial and intended for the mobile app.)
I'm going to close this Issue because we don't have control over their endpoint. If you have more questions about this, or news about the status of their API, please respond and/or re-open the Issue.
@derhuerst access to both sitkol.pl
and rozklad-pkp.pl
is restricted from abroad (they also restrict connection from the Polish VPN servers I was able to try). AFAICS the hosts can be accessed only from Poland and Ukraine (which is really nice of them).
In this case, if you have the ability to do it legally (I'm referring to the discussion in https://github.com/public-transport/hafas-client/issues/184), can you check if the hafas-client
PKP integration still works?
@derhuerst Nope, the integration doesn't work. The endpoint now expects a MAC as a query parameter which is computed by the app, and verified by the server. Taking into account this and the mentioned discussion one can safely assume the owners of the endpoint really want to prevent public access to it.
It looks like yesterday something has changed with pkp mgate endpoint.