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

Please add NYC's MTA transit network. #90

Closed
mxxcon opened this issue Jul 26, 2023 · 18 comments
Closed

Please add NYC's MTA transit network. #90

mxxcon opened this issue Jul 26, 2023 · 18 comments
Assignees
Labels
enhancement New feature or request

Comments

@mxxcon
Copy link

mxxcon commented Jul 26, 2023

Please add New York City's MTA transit network of busses, subways, and ferry if possible.
The official website is https://new.mta.info/
GTFS feeds are available at from https://www.transit.land/operators/o-dr5r-nyct and https://www.transit.land/operators/o-dr5r7-nycdot

@osm-ToniE
Copy link
Owner

Thanks.

I have a question regarding the GTFS data

  • Staten Island buses - f-dr5r-mtanyctbusstatenisland
  • Manhattan buses - f-dr5r-mtanyctbusmanhattan
  • Queens buses - f-dr5x-mtanyctbusqueens
  • Bronx buses - f-dr72-mtanyctbusbronx
  • Brooklyn buses - f-dr5r-mtanyctbusbrooklyn

In addition there are the also the following

  • f-dr5r-mtabc - ???
  • f-dr5r-mtanewyorkcitytransit - ???
  • f-dr5r-nyctsubway - all subway lines, not operated by MTA?
  • f-dr5r7-nycdotsiferry - Staten Island Ferry, not operated by MTA?
    What do the first two stand for?
    Are that last two not part of the MTA network?

Thanks

@osm-ToniE
Copy link
Owner

Another Question regarding the search area

  • NCY - OK
  • Long Island - ?
  • Connecticut - ?
  • Southeastern New York State - which counties ?

The Metropolitan Transportation Authority is North America's largest transportation network, serving a population of 15.3 million people across a 5,000-square-mile travel area surrounding New York City, Long Island, southeastern New York State, and Connecticut.

@osm-ToniE
Copy link
Owner

osm-ToniE commented Jul 27, 2023

Which 'network' values are valid?

  • Metropolitan Transportation Authority
  • MTA

aren't used at all.

What I see also as 'network' https://ptna.openstreetmap.de/results/US/NY/US-NY-MTA-Analysis.html#networkdetails

  • MTA New York City Bus
  • NY Waterway
  • NYC Subway
  • NYC Transit
  • Staten Island Ferry
  • Staten Island Railway

They are not considered as relevant at the moment, I can add them though

@osm-ToniE osm-ToniE added the enhancement New feature or request label Jul 27, 2023
@osm-ToniE osm-ToniE self-assigned this Jul 27, 2023
@mxxcon
Copy link
Author

mxxcon commented Jul 27, 2023

* f-dr5r-mtabc - ???

It looks like they are also city bus routes.
If you look at https://www.transit.land/operators/o-dr5r-nyct#routes you'll see that they are listed as "MTA Bus Company" instead of "MTA New York City Transit" like other routes.

Looking at wikipedia article for one of the lines there https://en.wikipedia.org/wiki/Q72_(New_York_City_bus) it says:

It is city-operated under the MTA Bus Company brand of MTA Regional Bus Operations.

I guess it's quirk of when MTA acquired/merged with some of the other smaller local bus operators.

Regional Bus Operations is currently only used in official documentation, and not publicly as a brand. The current public brands are listed below:
MTA New York City Bus – most routes within the City of New York, operated by the New York City Transit Authority (NYCT) and subsidiary Manhattan and Bronx Surface Transit Operating Authority (MaBSTOA).
MTA Bus – service previously administered by the New York City Department of Transportation and operated by seven companies at the time of the takeover, mostly concentrated in Queens, with some routes in the Bronx and Brooklyn, and most express service from Brooklyn, Queens and the Bronx to Manhattan. The seven former companies were, Command Bus Company, Inc.; Green Bus Lines, Inc.; Jamaica Buses, Inc., Liberty Lines Express, Inc.; New York Bus Service, Inc.; Queens Surface Corp.; and Triboro Coach Corp.

For customers all these are just regular city buses with the usual branding, look and fare system.


* f-dr5r-mtanewyorkcitytransit - ???

transit.land site shows no routes associated with this, but when I downloaded http://web.mta.info/developers/files/google_transit_supplemented.zip that's linked there, I do see routes.txt file which looks to contain all the same NYC's subway lines.
I'm not familiar with GTFS' nuances to understand the difference between this and f-dr5r-nyctsubway or why there are 2 of them.

* f-dr5r-nyctsubway - all subway lines, not operated by MTA?

They are operated by MTA.

* f-dr5r7-nycdotsiferry - Staten Island Ferry, not operated by MTA?

NYC DOT, not MTA, operates the Staten Island Ferry, providing free service between Staten Island and Lower Manhattan every day of the week, year-round.
https://www.nyc.gov/html/dot/html/ferrybus/staten-island-ferry.shtml

  Are that last two not part of the MTA network?

SI Ferry is not really part of "MTA" network.
There are also other ferry routes around NYC, but they are also not operated by MTA. Some might be using MTA's MetroCard and OMNI fare payment system, but I'm not sure, I've never taken them.

@mxxcon
Copy link
Author

mxxcon commented Jul 27, 2023

Another Question regarding the search area

My original request was specifically for NYC proper. But if you want to expand MTA's coverage, I'm not against it 😉

* NCY - OK

NYC ;)

* Long Island - ?

MTA operates LIRR (Long Island Rail Road) which runs to the very eastern tip of LI, which consist of Suffolk and Nassau counties o-dr5-longislandrailroad https://www.transit.land/operators/o-dr5-longislandrailroad

* Southeastern New York State - which counties ?

Depends what they consider "southerneastern". 😄
To the north of NYC, MTA operates in Westchester, Putnam, Dutchess, and they have 2 isolated lines in Orange and Rockland counties.

* Connecticut - ?

MTA also operates Metro-North Railroad which has lines to/from Connecticut's Fairfield and New Haven counties.
o-dr7-metro~northrailroad https://www.transit.land/operators/o-dr7-metro~northrailroad

This map shows all their commuter railroad lines https://new.mta.info/map/22461

MTA also works closely with Port Authority of NY/NJ (which operates PATH subway/lightrail lines o-dr5r-path) https://www.transit.land/operators/o-dr5r-path. They use the same MetroCard fare system as MTA.

@osm-ToniE
Copy link
Owner

I suggest keeping the search area to NYC and see what might be missing after having sorted all the stuff.
I want the search area as tiny as possible. PTNA will find all relations which have at least a one node (platform, stop, node of way) in the search area - incl. their route_masters and brother/sister relations in the route_masters.
That should match for the time being.

I see 'network' = 'LIRR' in the analysis report, so the current search might find many of the extra lines

I will extend the list of accepted 'network' values by

  • MTA New York City Bus
  • NY Waterway
  • NYC Subway
  • NYC Transit
  • Staten Island Ferry
  • Staten Island Railway
  • LIRR

and we'll see the outcome.

@mxxcon
Copy link
Author

mxxcon commented Jul 27, 2023

Which 'network' values are valid?

* Metropolitan Transportation Authority

* MTA

I'd say maybe network=Metropolitan Transportation Authority and network:short=MTA?

aren't used at all.

Hopefully we'll be fixing it all soon enough 😅

What I see also as 'network' https://ptna.openstreetmap.de/results/US/NY/US-NY-MTA-Analysis.html#networkdetails

I think all/most of these are coming from NSI.

* MTA New York City Bus

* NY Waterway

* NYC Subway

https://nsi.guide/index.html?t=transit&k=route&v=subway&tt=nyc#nycsubway-8c396c

* NYC Transit

I believe this comes from https://nsi.guide/index.html?t=transit&k=highway&v=bus_stop&tt=mta#nyctransit-b4d0c3

* Staten Island Ferry

This probably comes from https://nsi.guide/index.html?t=transit&k=route&v=ferry&tt=staten#statenislandferry-732c9d

* Staten Island Railway

https://nsi.guide/index.html?t=transit&k=route&v=subway&tt=staten#statenislandrailway-8c396c

Hopefully we'll get around to normalizing it all.😵

@osm-ToniE
Copy link
Owner

Started sorting the lines in the OSM-Wiki

Analysis runs a 3rd time now

@osm-ToniE
Copy link
Owner

Is it OK for GTFS to start with

  • US-NY-MTA-Subway - f-dr5r-nyctsubway
  • US-NY-MTA-Bronx-Bus - f-dr72-mtanyctbusbronx
  • US-NY-MTA-Brooklyn-Bus - f-dr5r-mtanyctbusbrooklyn
  • US-NY-MTA-Manhattan-Bus - f-dr5r-mtanyctbusmanhattan
  • US-NY-MTA-Queens-Bus - f-dr5x-mtanyctbusqueens
  • US-NY-MTA-Staten-Island-Bus - f-dr5r-mtanyctbusstatenisland
  • US-NY-MTA-Bus-Company - f-dr5r-mtabc

@mxxcon
Copy link
Author

mxxcon commented Jul 29, 2023

Is it OK for GTFS to start with

why wouldn't it be?

@osm-ToniE
Copy link
Owner

I wasn't clear on how to name them.

  • MTA NYCT offers services in the 5 boroughs configured with 5 GTFS feeds
  • MTA Bus Company offers services NYC wide with a single GTFS feed

Should that be reflected in the name of the feed?

BTW: f-dr5r-nyctsubway and f-dr5r-mtanewyorkcitytransit are identical, so we're fine with the 7 GTFS feeds above (I hope)

@mxxcon
Copy link
Author

mxxcon commented Jul 29, 2023

  • MTA NYCT offers services in the 5 boroughs configured with 5 GTFS feeds
  • MTA Bus Company offers services NYC wide with a single GTFS feed

To the riders it all looks like the same company and service, so I don't think we should bother trying to document their internal corporate structure in OSM tags. A common system-wide name is fine.

Regarding subway feeds, f-dr5r-mtanewyorkcitytransit seems to be much larger, but I don't know if the differences are something that's relevant for your site.

@osm-ToniE
Copy link
Owner

Released

@osm-ToniE
Copy link
Owner

To the riders it all looks like the same company and service, so I don't think we should bother trying to document their internal corporate structure in OSM tags. A common system-wide name is fine.

Yep, except if this makes a difference in 'operator' values

Regarding subway feeds, f-dr5r-mtanewyorkcitytransit seems to be much larger, but I don't know if the differences are something that's relevant for your site.

Oops, I did check routes.txt and trips.txt and they are identical. I did not check shape.txt though. Would be beneficial to present the shapes also.

@mxxcon
Copy link
Author

mxxcon commented Aug 5, 2023

I've been thinking about the value of network= tag and it seems like it is duplicating the values of operator= tags. Shouldn't it be different?
For example looking at Wikidata article for the subway network, and the linked Wikipedia article, they both refer to it as "New York City Subway". So maybe that's what this tag for subway should be?

Similarly, for the buses shouldn't it be different from the value of operator= tag? Maybe it makes sense to use "MTA New York City Bus"?

I'm not quiet clear on all the semantics and implications if these tags change...

And I'm thinking that a similar change needs to happen to https://github.com/osmlab/name-suggestion-index/blob/main/data/transit/route/bus.json#L10440 and https://github.com/osmlab/name-suggestion-index/blob/main/data/transit/route/subway.json#L332,
and maybe https://github.com/osmlab/name-suggestion-index/blob/main/data/transit/route/train.json#L919 and https://github.com/osmlab/name-suggestion-index/blob/main/data/transit/route/train.json#L1067 so that at a later point these changes won't get clobbered by iD/Rapid/other editor that uses NSI. 🤔

@osm-ToniE
Copy link
Owner

I'm not quiet clear on all the semantics and implications if these tags change...

Yeah, right! There is no clear understanding OSM-world-wide either.

I see 'network' as the authority which organizes the PT in the area, is partly funded/subsidized by government (on lower level: county) to have reasonable fares, defines tariff zones, (transfer) rules, ... and - now coming to the 'operator' section - publishes "public invitation to bid" for operating a specific bus/subway/... route for the next 3-5 years with a requested SLA.

'operator' can participate in this bid and hope to get the contract, then buy buses/..., hire drivers, ... hoping to operator the route with a financial revenue.

That's simply spoken; how it works here in Munich, DE and will definitely not apply world-wide.

So, f.m.p.o.v. it's a task for the local mappers to define the semantics. A possible mapping is "agency" of GTFS to 'operator' in OSM.

@mxxcon
Copy link
Author

mxxcon commented Aug 11, 2023

I noticed an issue with some of the subway lines.
In section 3.1 Subway/Underground (subway) you have <6>, <7>, <F> routes and in 2.3.1 NYC Subway you have empty entries for 6X, 7X, FX lines.

They are the same thing. The trains have "diamond" symbol on their displays and MTA calls them "express" lines.
You can see that if you download PDF schedules of these lines from https://new.mta.info/schedules
For example 2nd to the last page of the 7 line shows:
image
Wikipedia article also mentions these diamond designations https://en.wikipedia.org/wiki/New_York_City_Subway_nomenclature#Diamond_services

I'm guessing in GTFS feed MTA uses 6X, 7X, FX because <> characters are not allowed or somehow else cause problems.
It would be great if you could associate these lines to each other. 👍

@osm-ToniE
Copy link
Owner

I've changed that in the CSV input data for PTNA.
This data is intended to be maintained by local mappers.

Neither GTFS nor OSM have a way expressing the diamond symbol, nor do they have a way expressing complex colour schemes like the (quite simple) one for the subway U8 here
grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants