Closed mimi89999 closed 6 years ago
That they are listed there is good. It means that they have their data available in GTFS format, so support for it could be added using Navitia, provided we can get the GTFS data added to the Navitia web service. I tried to explain the options here: http://transportr.grobox.de/#add_region So maybe try to find the GTFS data for ZTM and get it added to Navitia.
Is the ZTM data not available within the current provider for Poland?
For Poland, I can see only "PKP" provider.
I have a ZtmProvider on a private branch, they've got a Hafas API. However, there was a serious problem that kept me from using it. Can't remember the details, would need to try again.
Could you check what was the problem?
I published the branch: https://github.com/schildbach/public-transport-enabler/commits/provider-ztm
The main issue is that departures can't be queried. If someone could talk to ZTM about that, it would be great!
Also it's missing types, but that's an issue on our side.
I built Transportr including https://github.com/schildbach/public-transport-enabler/commits/provider-ztm and when I tested it, I got this error: java.lang.IllegalStateException: cannot normalize type '14'
Yes, the line to product mapping is largely unfinished. But that's only a minor problem, if all else fails we could map any line to null (unknown product).
I changed https://github.com/mimi89999/public-transport-enabler/commit/8c7821e1e30e5b925f824cc84291ee6f3dad12ed to get readable addresses...
I found this contact form: http://ztm.waw.pl/?c=115&l=1 , but I don't think I'm capable of writing to them...
Why are you not capable? Would you be able to write to them if you understood the nature of the problem with querying departures better?
Yes
There is also a contact form in English: https://secure.ztm.waw.pl/index.php?c=115&l=2
I wrote to them...
They replied that they need more details.
If they have an english speaking contact I'd be happy to email them.
You could try: ztm@ztm.waw.pl
I then never mind. What I meant is if we have a specific contact person there at ZTM we can work with, I'm happy to explain details. Someone who is able to configure their Hafas server.
I will write to them and ask.
The email address from which I got the reply was: ztm@ztm.waw.pl, so it seems that they don't use/give any other email address. They don't provide any contact email on their website. :disappointed:
@schildbach @grote But since ZTM is in the list https://maps.google.com/landing/transit/cities/index.html#Europe , there should be GTFS data available for it. Did I understand something the wrong way?
@mimi89999 PTE expects an API. GTFS is a data format.
@schildbach @grote I've recently found something called "Dbtimetable API" for ZTM: api.um.warszawa.pl unfortunately all the information are available only in Polish, but you can write to kontakt@um.warszawa.pl. I know that it is appropriate address for this site and it can be used by English speaking people.
Any news?
I'm a bit late, but I provide a set of feeds with Warsaw data, avaible at mkuran.pl, ff that would help.
The ZTM doesn't have a GTFS feed, they have feed in their custom format, which Google than uses to create GTFS.
@schildbach Is that feed usable?
@schildbach I presume that now it will be possible to add not only Warsaw, but also other cities added by Nativia?
@Etua this is true. However, I would not wait for @schildbach to do this work for you.
The data is on Nativia and Google. Other sources are also available: https://mkuran.pl/feed/ztm/ and https://przyjazdy.pl/latest/warszawa.zip . Is there a simple HOWTO for people who are not familiar with the PTE lib and apps using it?
@grote The API sometimes returns the line number as type. It will be a nightmare to do the mapping.
Departures are still broken. The HTML interface is returned instead of a table. I wrote again to ZTM about it. Let's hope that they will do something about it.
ZTM replied that the official way of getting data are the zips that they provide, that I wrote about before and the API that @etua wrote about.
I'm not even sure that they are aware that their "wyszukiwarka" is exposing an API...
@mimi89999 Well, it's like ZTM said: the only official way to download data from them is ftp://rozklady.ztm.waw.pl/ — that's the source for GTFS on mkuran.pl (PRZYJAZDY.PL is just a reupload of mine data 😉). The HAFAS from http://wyszukiwarka.ztm.waw.pl/ is very wired and I'd recommend to forget about it.
On the other hand, Warsaw Open Data project has this DBtimetable API (linked doc in Polish), but it offers only timetables per-stop, so I'd assume it lacks crucial (from trip planning point of view) data.
I just merged #207. Is this issue resolved?
Yes
Would it be possible to add "ZTM" support? They are in the list: https://maps.google.com/landing/transit/cities/index.html#Europe under Poland/Warsaw/ZTM Warszawa Thanks in advance.