Re: [MTAdev] LIRR Track information in feed?

250 views
Skip to first unread message
Message has been deleted

Fisher, Will

unread,
Mar 21, 2018, 10:23:49 AM3/21/18
to mtadevelop...@googlegroups.com
Is this for the subway or railroad (LIRR, Metro-North)?

Will

On Mar 21, 2018, at 10:20 AM, kp <kesal...@gmail.com> wrote:

All - wondering if anyone has had any luck finding track postings in the GTFS feeds?

I have access to the feeds but can't see what track number the train is coming into per station.

--
You received this message because you are subscribed to the Google Groups "mtadeveloperresources" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperreso...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kp

unread,
Mar 21, 2018, 10:28:35 AM3/21/18
to mtadeveloperresources
Sorry about that, for railroad, LIRR.


On Wednesday, March 21, 2018 at 10:23:49 AM UTC-4, Will Fisher (MTA) wrote:
Is this for the subway or railroad (LIRR, Metro-North)?

Will

On Mar 21, 2018, at 10:20 AM, kp <kesal...@gmail.com> wrote:

All - wondering if anyone has had any luck finding track postings in the GTFS feeds?

I have access to the feeds but can't see what track number the train is coming into per station.

--
You received this message because you are subscribed to the Google Groups "mtadeveloperresources" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperresources+unsub...@googlegroups.com.

Fisher, Will

unread,
Mar 21, 2018, 12:52:17 PM3/21/18
to mtadevelop...@googlegroups.com
Yes, the LIRR GTFS-RT feed has track information in it. Try hitting the json endpoint.


Will

To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperreso...@googlegroups.com.

Patrick O'Hara

unread,
Mar 21, 2018, 2:54:06 PM3/21/18
to MTA Developer Resources Google Group

The short answer to the question is no.  The JSON feed does have a new “track” field in StopTimeUpdate (that’s non-standard/non-complaint with the GTFS-RT specification…) that was added a couple of weeks ago.

However, the like the rest of the information on the LIRR’s GTFS-RT feed, it’s all past tense.  The track information is only communicated with the rest of the StopTimeUpdate field, which is only done as a train is “timed” at that location (i.e. it is arriving or departing a station).  That means if you’re looking for what track a certain train will arrive on at Mineola, for example, the GTFS-RT StopTimeUpdate field will only update for Mineola when the train is actually pulling into Mineola station.  And that’s if the feed updates at Mineola at all, which can’t be relied upon at any particular station or at any particular time.

Then by time you pull the feed and pass the information onto your users, the train is either sitting in the station or has already left.  So the information as it’s conveyed now in the LIRR’s GTFS-RT feed is basically useless.  At stations like Atlantic Terminal and several east end terminals where the feed only updates after the train has departed, you wouldn’t get the track number until the has already left the station.


If you’re looking for what track the train will arrive on before it actually gets to the station (which I assume would be the case for most applications), there’s no way to get that from the GTFS-RT feed now.  The only way you could get that information is through the Departures feed of the TrainTime API.  However the trouble with that course is the feed is only available station-by-station, so you would have to pull the feeds for 120-something stations individually to get the full picture.

The situation has not really changed since it was first brought to the MTA’s attention through this this group almost two years ago in April 2016.  At the time I suggested the railroad put out some sort of Alternative Status Feed through the TrainTime API that would consolidate all of the information already conveyed through the various TrainTime API feeds onto one feed so developers can pull 1 feed (instead of 124) and get the complete picture of what’s going on in a way that’s not possible with the way the LIRR’s GTFS-RT feed is currently set up now.

There was no response or resolution to that issue at the time, and the issue still persists years later.  Knowing what track the train will arrive on (before it actually gets to the station) is very valuable to riders, it would be good if the LIRR could finally figure out a way to make this information available to riders in an accurate and reliable manner.

…patrick…


From: mtadevelop...@googlegroups.com <mtadevelop...@googlegroups.com> On Behalf Of Fisher, Will
Sent: Wednesday, March 21, 2018 12:52 pm
To: mtadevelop...@googlegroups.com
Subject: Re: [MTAdev] LIRR Track information in feed?

 

Yes, the LIRR GTFS-RT feed has track information in it. Try hitting the json endpoint.

 

 

Will



On Mar 21, 2018, at 10:28 AM, kp <kesal...@gmail.com> wrote:

 

Sorry about that, for railroad, LIRR.

On Wednesday, March 21, 2018 at 10:23:49 AM UTC-4, Will Fisher (MTA) wrote:

Is this for the subway or railroad (LIRR, Metro-North)?

 

Will



On Mar 21, 2018, at 10:20 AM, kp <kesal...@gmail.com> wrote:

 

All - wondering if anyone has had any luck finding track postings in the GTFS feeds?

 

I have access to the feeds but can't see what track number the train is coming into per station.

 

--
You received this message because you are subscribed to the Google Groups "mtadeveloperresources" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperreso...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to the Google Groups "mtadeveloperresources" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperreso...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kp

unread,
Mar 22, 2018, 3:11:10 PM3/22/18
to mtadeveloperresources
Thanks Patrick for the super detailed response.  And I agree - surfacing that information to riders looking at a schedule is extremely valuable.

@Will - is there a timeline for this?  Or is it at least on the roadmap?


On Wednesday, March 21, 2018 at 10:23:49 AM UTC-4, Will Fisher (MTA) wrote:
Is this for the subway or railroad (LIRR, Metro-North)?

Will

On Mar 21, 2018, at 10:20 AM, kp <kesal...@gmail.com> wrote:

All - wondering if anyone has had any luck finding track postings in the GTFS feeds?

I have access to the feeds but can't see what track number the train is coming into per station.

--
You received this message because you are subscribed to the Google Groups "mtadeveloperresources" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperresources+unsub...@googlegroups.com.

Fisher, Will

unread,
Mar 22, 2018, 5:04:37 PM3/22/18
to mtadevelop...@googlegroups.com
Let me take a look and I'll let you know.

Will

To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperreso...@googlegroups.com.

Alex Perl

unread,
Jun 12, 2019, 2:41:13 AM6/12/19
to mtadeveloperresources
Hi Will - Is there any update on this?

Fisher, Will

unread,
Jun 12, 2019, 1:10:56 PM6/12/19
to mtadevelop...@googlegroups.com

Where do you want this data? Are we talking scheduled tracks in GTFS or realtime tracks in GTFS-RT?

 

Will

 

From: <mtadevelop...@googlegroups.com> on behalf of Alex Perl <aper...@gmail.com>
Reply-To: "mtadevelop...@googlegroups.com" <mtadevelop...@googlegroups.com>
Date: Wednesday, June 12, 2019 at 2:41 AM
To: mtadeveloperresources <mtadevelop...@googlegroups.com>
Subject: Re: [MTAdev] LIRR Track information in feed?

 

Hi Will - Is there any update on this?



On Thursday, March 22, 2018 at 5:04:37 PM UTC-4, Will Fisher (MTA) wrote:

Let me take a look and I'll let you know.

 

Will



On Mar 22, 2018, at 3:11 PM, kp <kesal...@gmail.com> wrote:

 

Thanks Patrick for the super detailed response.  And I agree - surfacing that information to riders looking at a schedule is extremely valuable.

 

@Will - is there a timeline for this?  Or is it at least on the roadmap?

On Wednesday, March 21, 2018 at 10:23:49 AM UTC-4, Will Fisher (MTA) wrote:

Is this for the subway or railroad (LIRR, Metro-North)?

 

Will



On Mar 21, 2018, at 10:20 AM, kp <kesal...@gmail.com> wrote:

 

All - wondering if anyone has had any luck finding track postings in the GTFS feeds?

 

I have access to the feeds but can't see what track number the train is coming into per station.

 

--
You received this message because you are subscribed to the Google Groups "mtadeveloperresources" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperreso...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mtadeveloperresources" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperreso...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mtadeveloperresources" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperreso...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mtadeveloperresources/da4f8d6f-6acf-46a4-a6a0-dd29ab4d219c%40googlegroups.com.

Alex Perl

unread,
Jun 12, 2019, 4:33:13 PM6/12/19
to mtadeveloperresources
Hi Will - thank you for replying.

Short answer is both, but Realtime Tracks in GTFS-RT is priority. Current JSON version of GTFS-RT (https://mnorth.prod.acquia-sites.com/wse/LIRR/gtfsrt/realtime/<KEY>/json) does have an extra not per spec TRACK field, but it's mostly empty, only appears for maybe < 1% of StopTimeUpdate elements and is likely past data not future data (as in, once train already pulled in to the station track or already left, so not useful to commuters at all). Can we have reliable track assignment that is useful to commuters?

Another LIRR Feed (https://traintime.lirr.org/api/Departure?api_key={0}&loc={1}";) does seem to have more reliable Track assignments, but this feed relies on TRIP_SHORT_ID field to match with Static GTFS - this field was included in LIRR Static GTFS data set up until Feb 2019 and then removed. Without TRIP_SHORT_ID this realtime feed is useless. Can we have this field returned back in LIRR static GTFS ?

Thanks.


On Wednesday, June 12, 2019 at 1:10:56 PM UTC-4, Will Fisher (LIRR) wrote:

Where do you want this data? Are we talking scheduled tracks in GTFS or realtime tracks in GTFS-RT?

 

Will

 

From: <mtadevelop...@googlegroups.com> on behalf of Alex Perl <aper...@gmail.com>
Reply-To: "mtadevelop...@googlegroups.com" <mtadevelop...@googlegroups.com>
Date: Wednesday, June 12, 2019 at 2:41 AM
To: mtadeveloperresources <mtadevelop...@googlegroups.com>
Subject: Re: [MTAdev] LIRR Track information in feed?

 

Hi Will - Is there any update on this?

On Thursday, March 22, 2018 at 5:04:37 PM UTC-4, Will Fisher (MTA) wrote:

Let me take a look and I'll let you know.

 

Will



On Mar 22, 2018, at 3:11 PM, kp <kesal...@gmail.com> wrote:

 

Thanks Patrick for the super detailed response.  And I agree - surfacing that information to riders looking at a schedule is extremely valuable.

 

@Will - is there a timeline for this?  Or is it at least on the roadmap?

On Wednesday, March 21, 2018 at 10:23:49 AM UTC-4, Will Fisher (MTA) wrote:

Is this for the subway or railroad (LIRR, Metro-North)?

 

Will



On Mar 21, 2018, at 10:20 AM, kp <kesal...@gmail.com> wrote:

 

All - wondering if anyone has had any luck finding track postings in the GTFS feeds?

 

I have access to the feeds but can't see what track number the train is coming into per station.

 

--
You received this message because you are subscribed to the Google Groups "mtadeveloperresources" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperresources+unsub...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mtadeveloperresources" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperresources+unsub...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mtadeveloperresources" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperresources+unsub...@googlegroups.com.

Ariel S

unread,
Jun 17, 2019, 10:33:36 PM6/17/19
to mtadeveloperresources
I am also interested in LIRR track information. Would it be possible to get back the trip short ID field?
Better yet -- can the departing track be included in the realtime feed somehow?

I'm hoping someone from the MTA looks into this.

Alex Perl

unread,
Jul 2, 2019, 7:21:28 PM7/2/19
to mtadeveloperresources
MTA Team - is there any update on this?
Reply all
Reply to author
Forward
0 new messages