schildbach / public-transport-enabler

Unleash public transport data in your Java project.
https://groups.google.com/forum/#!forum/public-transport-enabler-discuss
GNU General Public License v3.0
388 stars 133 forks source link

Add polish transport provider "ZTM" #50

Closed mimi89999 closed 6 years ago

mimi89999 commented 8 years ago

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.

grote commented 8 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?

mimi89999 commented 8 years ago

For Poland, I can see only "PKP" provider.

schildbach commented 8 years ago

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.

mimi89999 commented 8 years ago

Could you check what was the problem?

schildbach commented 8 years ago

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.

mimi89999 commented 8 years ago

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'

schildbach commented 8 years ago

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).

mimi89999 commented 8 years ago

I changed https://github.com/mimi89999/public-transport-enabler/commit/8c7821e1e30e5b925f824cc84291ee6f3dad12ed to get readable addresses...

mimi89999 commented 8 years ago

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...

grote commented 8 years ago

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?

mimi89999 commented 8 years ago

Yes

mimi89999 commented 8 years ago

There is also a contact form in English: https://secure.ztm.waw.pl/index.php?c=115&l=2

mimi89999 commented 8 years ago

I wrote to them...

mimi89999 commented 8 years ago

They replied that they need more details.

schildbach commented 8 years ago

If they have an english speaking contact I'd be happy to email them.

mimi89999 commented 8 years ago

https://secure.ztm.waw.pl/index.php?c=115&l=2

schildbach commented 8 years ago

email

mimi89999 commented 8 years ago

You could try: ztm@ztm.waw.pl

schildbach commented 8 years ago

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.

mimi89999 commented 8 years ago

I will write to them and ask.

mimi89999 commented 8 years ago

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:

mimi89999 commented 8 years ago

@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?

schildbach commented 8 years ago

@mimi89999 PTE expects an API. GTFS is a data format.

Etua commented 8 years ago

@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.

mimi89999 commented 8 years ago

Any news?

MKuranowski commented 7 years ago

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.

mimi89999 commented 7 years ago

@schildbach Is that feed usable?

Etua commented 6 years ago

@MKuranowski Nativia decided to use your feed.

Etua commented 6 years ago

@schildbach I presume that now it will be possible to add not only Warsaw, but also other cities added by Nativia?

grote commented 6 years ago

@Etua this is true. However, I would not wait for @schildbach to do this work for you.

mimi89999 commented 6 years ago

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?

mimi89999 commented 6 years ago

@grote The API sometimes returns the line number as type. It will be a nightmare to do the mapping.

mimi89999 commented 6 years ago

I added it. https://gitlab.com/opentransitmap/public-transport-enabler/merge_requests/1/

mimi89999 commented 6 years ago

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.

mimi89999 commented 6 years ago

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...

MKuranowski commented 6 years ago

@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.

schildbach commented 6 years ago

I just merged #207. Is this issue resolved?

mimi89999 commented 6 years ago

Yes