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

Support for New York #180

Closed
anarcat opened this issue Apr 13, 2016 · 15 comments
Closed

Support for New York #180

anarcat opened this issue Apr 13, 2016 · 15 comments
Labels
beginner job 🔰 This is a relatively easy task suitable for new contributors. coverage 🗺️ This is related to the geographic areas supported. enhancement 🏗️ A functional improvement. upstream 🏞️ Related to an upstream issue.

Comments

@anarcat
Copy link

anarcat commented Apr 13, 2016

New York, New Yoooooork! We want to be a paart of it!

@grote
Copy link
Owner

grote commented Apr 13, 2016

What exactly is this issue about?

@anarcat
Copy link
Author

anarcat commented Apr 13, 2016

Hmm... sorry if that wasn't clear: i wish to see if it's possible to have transportr routing and showing transit maps for the New York City area.

It seems the data is freely (as in beer) accessible: http://web.mta.info/developers/

However, you need some API key and agree to their terms of service:

http://web.mta.info/developers/download.html

Not sure that's going to work out...

@grote
Copy link
Owner

grote commented Apr 13, 2016

Routing and Transit Maps are two different issues. New York should be supported by Navitia. I think you know now how to add that yourself ;)

The maps are a whole different issue and require proper infrastructure which isn't there, yet. But I plan on having this feature eventually.

@anarcat
Copy link
Author

anarcat commented Apr 13, 2016

I guess I mean routing then.

The terms of use are basically, you can't:

  • claim accuracy
  • delete the data
  • etc

There is no specific License required otherwise, unless the MTA's intellectual property (logos, symbols, agency names) are used.

There's also a mailing list. https://groups.google.com/forum/#!forum/mtadeveloperresources

I am not sure what Navitia is, actually - is this the wrong place to ask for new cities in Transportr?

@grote grote added enhancement 🏗️ A functional improvement. upstream 🏞️ Related to an upstream issue. beginner job 🔰 This is a relatively easy task suitable for new contributors. coverage 🗺️ This is related to the geographic areas supported. labels Apr 13, 2016
@grote grote changed the title New York area maps Support for New York Apr 13, 2016
@grote
Copy link
Owner

grote commented Apr 13, 2016

You were involved in adding support for Quebec. That happened with Navitia. The process is described here: https://transportr.grobox.de/#add_region
But you can also look into how Quebec was done. It is exactly the same for New York.

@anarcat
Copy link
Author

anarcat commented Apr 13, 2016

Oh okay, I see. Well, I just tested an APK - I didn't do much more. I opened an issue in the enabler queue to dump the ideas there instead: schildbach/public-transport-enabler#84

Previous comments about the MTA terms of service and everything are rendered obsolete by Navitia's support, obviously. :)

Thanks for the quick feedback!

@anarcat
Copy link
Author

anarcat commented Apr 13, 2016

Also, I have to say that, even though I have some experience with Java, looking at those pull requests as a basis for documentation on how to add support for new cities isn't really inviting. It's not clear from the get-go how the code works and what varies according to the city or not.

Having specific documentation on how to add cities would be an improvement. For example, a template that could be filled automatically could be provided...

@grote
Copy link
Owner

grote commented Apr 13, 2016

You need to understand somewhat what is going on in the code. The changes are so minimal and small that a template would not help and only invite people that have no clue and can't even compile their code to submit non-working PRs.

Check out Ontario here:

That is really not a lot of code and usually doesn't even change from region to region. Just change the network and region ID and adapt the test to the local stations/streets. If there need to be any differences, you only find out when trying it for yourself. Nobody knows that beforehand.

If you want to try, just clone Transportr and drop your file here: https://github.com/grote/Transportr/tree/master/src/de/schildbach/pte
This way you can test with the app already without touching the public transport enabler first.

@anarcat
Copy link
Author

anarcat commented Apr 13, 2016

So there, you got me already: I don't have an Android development environment here. Last time I tried, the Android SDK filled my disk with 6GB+ of proprietary garbage. I will eventually try my luck again with the libre rebuilds of the Android SDK, but I can't compile stuff right now. I appreciate that the Transportr README has pointers on how to set that up, but I'm not there yet.

Furthermore, I know about the famous Ontario PR. As much as I love Ontario, it doesn't answer the questions people have here when they need to implement new regions. Which part varies with the region? What is constant across region? The code itself doesn't say. There are no comments in the code explaining what bit does what.

Code is not documentation (which connects to schildbach/public-transport-enabler#51), and a simple README (https://github.com/schildbach/public-transport-enabler/pull/73/files) is not sufficient documentation either, especially since that README is just pointing to the source as documentation again. At the very least, the Transportr README could point to the public-transport-enabler README...

Now, I understand that you feel comfortable browsing through the source as documentation, and that may be fine! But if you want more people to get involved in the project, a little more hand-holding would be immensely appreciated.

But maybe that goes outside of this specific issue, and I should open a separate one?

@jcharaoui
Copy link

I wanted to add Montreal, Quebec, but @anarcat nails it why I abandoned after spending about an hour trying to figure these things out.

@grote
Copy link
Owner

grote commented Apr 13, 2016

I'd be happy to take an existing provider and annotate it heavily with comments if that helps you guys. However, @chimo was able to do it without just fine and you will need a proper Android dev setup to test the app.

@anarcat
Copy link
Author

anarcat commented Apr 13, 2016

A more detailed example would certainly be useful. And I don't know who @chimo is, but ... good for him! :)

@grote
Copy link
Owner

grote commented Apr 13, 2016

That is the one who was so nice to do Quebec support for you. Let me know once you are able to build the app yourself.

@cxxuzbim
Copy link

cxxuzbim commented Feb 26, 2017

I have attached some of the logos for this region if they are needed. They are in svg and android svg formats.
us-ny logos.zip

It covers the Centro, MTA, Nice, NFTA, PATH, and RTS networks.

@grote
Copy link
Owner

grote commented Jan 31, 2018

Support for New York has been added in a512319 and is already available in Transportr 2 beta 2.

@grote grote closed this as completed Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner job 🔰 This is a relatively easy task suitable for new contributors. coverage 🗺️ This is related to the geographic areas supported. enhancement 🏗️ A functional improvement. upstream 🏞️ Related to an upstream issue.
Projects
None yet
Development

No branches or pull requests

4 participants