To get to the LIRR GTFS-RT feed you have to e-mail your API key to Mr. Larsen…see:
https://groups.google.com/d/msg/mtadeveloperresources/slwHaNqAE18/gE-m6RaRGp8J. I have no idea why this requirement
isn’t posted someplace clearly on the site with all the information…
If you’re looking for track information, you won’t find it on the LIRR’s GTFS-RT Feed. You will have to use the TrainTime API Feeds for that, which is different (the Departures feed would be the best bet).
I don’t have a clue where the documentation pages went…previous posts to this group have been ignored. But here is the important information for that feed:
Feed location: https://traintime.lirr.org/api/Departure
URL parameters:
· loc= - the three-letter station code you want the countdown items for (let me know if you need the list of three letter codes)
Feed results:
· LOC: - the three-letter code for that station
· TIME: - the date and time the feed was returned at in mm/dd/yyyy hh:mm:ss format (24-hr time)
· TRAINS: - countdown items for each arriving train
o SCHED: - the scheduled date and time the train is supposed to arrive at the station. In mm/dd/yyyy hh:mm:ss format (24-hr time)
o TRAIN_ID: - the train number. These are typically 1-4 digit train numbers you can find in the timetables or as the train_id’s in the GTFS feeds, though since this feed shows inserts, they can be up to 8 alphanumeric characters long.
o DEST: - the three-letter station code of the final stop on that train
o STOPS: - the three-letter station codes of all remaining stops that train is supposed to make. If the countdown is showing at the final destination, the field will be blank for “discharge only” trains. NOTE: Hillside stops are not shown in this field.
o DIR: - the direction the train is travelling (E = eastbound, W = westbound)
o HSF: - indicates whether or not the train will stop at Hillisde (true = train stops, false = train does not stop)
o TRACK: - the track and platform the train is supposed to depart from. May be blank at terminals when the track is not yet posted.
o JAM: - indicates whether or not the train will stop at Jamaica (ture = train stops, false = train will pass through Jamaica but not stop, null = train won’t pass through Jamaica).
o ETA: - the estimated arrival time of that train, updated to account for all reported schedule deviations. Returned in mm/dd/yyyy hh:mm:ss format (24-hr time). The difference between this time and the SCHED time is how late or early the train is.
o CD: - the number of seconds between now and the time the train is supposed to arrive (a countdown field)
You would append ?loc=NYK to that URL to see the upcoming departures at NY-Penn Station, ?loc=ATL for Brklyn-Atlatnic Term, ?loc=HVL for Hicksville, and so on… There is no one feed that displays this information for all trains running at once for some reason,
so you will have to pull the feeds for each station you want to show departures for individually.
Hope this helps!
…patrick…
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperresources+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperreso...@googlegroups.com.
See the attached file.
…patrick…
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.