Incorrect LIRR track number from gtfs-rt

295 views
Skip to first unread message

Zahidur R

unread,
Sep 19, 2022, 8:53:47 AM9/19/22
to mtadeveloperresources
  1. I have implemented gtfs-rt API for my client (Clever Commute). Here gtfs-rt shows LIRR leaving NY Penn from tracks such as 4, 5, 6, 7 or 8.
    But actually LIRR trains never leave NYP on low-numbered tracks. Rather, they use approx tracks 14-22
    Is this issue with gtfs-rt?
  2. On the other hand, LIRR gtfs-rt returns no data sometimes.
    Is  gtfs-rt  still is beta version?



Fisher, Will

unread,
Sep 19, 2022, 10:02:26 AM9/19/22
to mtadevelop...@googlegroups.com

What URL are you pulling from?

 

Will

--
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/2a0c9b93-6c4c-41f8-b790-26fdaeabe6ban%40googlegroups.com.

Confidentiality Note: This e-mail, and any attachment to it, may contain privileged and confidential information and is intended for the use of the individual(s) or entity named on the e-mail. Unauthorized disclosure of this message is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and destroy this message and all copies thereof, including all attachments.

Zahidur R

unread,
Sep 19, 2022, 2:44:52 PM9/19/22
to mtadeveloperresources

Fisher, Will

unread,
Sep 19, 2022, 2:56:24 PM9/19/22
to mtadevelop...@googlegroups.com

Can you try backend.mylirr.org/gtfs and see if that’s any better?

clevercommute

unread,
Sep 19, 2022, 3:36:46 PM9/19/22
to mtadeveloperresources
I work with OP. I am the publisher of the app using that data. 

Thanks for the efforts here. But I need MTA to provide more clarity. 
I know everyone is doing their best and trying to help. 
If you need alpha/beta testers for this "backend" API, then we can consider participating if it makes sense for all parties. 

But for now, I am looking for feedback on the bugs reported in this thread. 
  1. Are both of these APIs in GA status? 
  2. Are you aware of what we see as an API defect? (LIRR trains on low-number tracks)
  3. How can we file bug reports so that MTA can look into this and give us traceability
Thanks, 

--Josh 



Fisher, Will

unread,
Sep 19, 2022, 11:35:02 PM9/19/22
to mtadevelop...@googlegroups.com

Hi,

 

  1. Yes, both are
  2. Haven’t looked because my team doesn’t work on the feed you’re currently using. The feed I gave you runs the app and has many more eyeballs on it.
  3. You can report directly to me (wfi...@mtahq.org) – should work for now

 

Best,

Will

clevercommute

unread,
Sep 20, 2022, 6:00:14 AM9/20/22
to mtadeveloperresources
Thanks. 

I don't think app owners should be asked to refactor their code as an experiment when (as far as they know) they are using a GA prod API. 
If your team does not work on that original production feed, then how does the dev community engage the team that does? 
We think there is a bug and as an app owner, I simply look to the API provider to own and operate the API with some kind of SLA.

An honest question for you: Any feedback for me on how we got to a point where my app is using an API that appears be #2 in terms of support and monitoring? 
Was there some kind of public announcement that MTA is doing a structured migration from one to the other? 

I know you are doing your best to help, but my board and my advisors are certainly going to grill me on this, and I can see their point of view. 



Fisher, Will

unread,
Sep 20, 2022, 9:32:04 AM9/20/22
to mtadevelop...@googlegroups.com

You can email me offline to discuss.

Zahidur R

unread,
Feb 20, 2023, 1:23:47 PM2/20/23
to mtadeveloperresources
http://backend.mylirr.org/gtfs is down now and no longer working. 
Do you have new API URL.?

Fisher, Will

unread,
Feb 20, 2023, 1:26:30 PM2/20/23
to mtadevelop...@googlegroups.com

Hi, please try this instead:

 

backend-unified.mylirr.org/gtfs and make sure the API version is set to 3.0 in the headers

 

Best,
Will

clevercommute

unread,
Feb 20, 2023, 3:48:03 PM2/20/23
to mtadeveloperresources
Thanks for this. 
The ongoing concern is that MTA will make an unannounced change to a non-GA API which will break my code...and that appears to be exactly what happened here. 
(I'd welcome being wrong)

When/where was the deprecation of backend.mylirr.org/gtfs announced?
Where is the doc for backend-unified.mylirr.org?

Nicholas Boccio

unread,
Jun 5, 2023, 8:50:03 PM6/5/23
to mtadeveloperresources
Hi,

The backend-unified.mylirr.org API is now returning a CORS access error and I can't retrieve data from it. From the standard feed, I can't parse carriage details or track postings. Is there a way to fix this?

Fisher, Will

unread,
Jun 5, 2023, 8:56:27 PM6/5/23
to mtadevelop...@googlegroups.com

Hi,

 

Can you set the CORS headers correctly? Or at least copy the CORS headers that traintime.mta.info is sending (use Chrome Inspector).

 

Best,

Will

Nicholas Boccio

unread,
Jun 6, 2023, 11:26:22 AM6/6/23
to mtadeveloperresources
These are the response headers:

HTTP/1.1 403 Forbidden Date: Tue, 06 Jun 2023 15:18:34 GMT Transfer-Encoding: chunked Connection: keep-alive Server: nginx/1.20.0 Vary: Origin Vary: Access-Control-Request-Method Vary: Access-Control-Request-Headers X-Content-Type-Options: nosniff X-XSS-Protection: 0 Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0 X-Frame-Options: DENY

Fisher, Will

unread,
Jun 6, 2023, 11:28:20 AM6/6/23
to mtadevelop...@googlegroups.com
Oh you need the Accept-Version header…

You can copy again from the website request.

Sent: Tuesday, June 6, 2023 11:26:22 AM

Nicholas Boccio

unread,
Jun 6, 2023, 12:05:47 PM6/6/23
to mtadeveloperresources
Here's the request headers from my site (local server test). I added the accept-version header but it didn't help:


OPTIONS /gtfs HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.9,es;q=0.8,it;q=0.7 Access-Control-Request-Headers: accept-version,access-control-allow-origin,x-api-key Access-Control-Request-Method: GET Connection: keep-alive Host: backend-unified.mylirr.org Origin: http://127.0.0.1:5500 Referer: http://127.0.0.1:5500/ Sec-Fetch-Mode: cors User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36

clevercommute

unread,
Jun 7, 2023, 4:43:01 PM6/7/23
to mtadeveloperresources
The app I publish has been adversely affected. 
Four questions: 
1. What changed? 
2. When?
3. Where/how was it announced? 
4. When will discrete fix/guidance from MTA be published? 

Zahidur R

unread,
Jun 12, 2023, 3:54:58 PM6/12/23
to mtadeveloperresources
I added the header but it is actually problem with API URL. Because https://backend-unified.mylirr.org/gtfs is no longer valid and it's returning 404 status.

As you suggested I also checked traintime.mta.info and found that it's using different end-point e.g. https://backend-unified.mylirr.org/arrivals/NYK

I need a valid API end-point for GTFS data.

Fisher, Will

unread,
Jun 14, 2023, 2:53:02 PM6/14/23
to mtadevelop...@googlegroups.com

Hi, can you try /gtfs/mnr or /gtfs/lirr? These feeds are the most accurate but are more likely to change than the API portal.

 

If you want something completely stable, I’d suggest using the API portal: https://new.mta.info/developers

 

Nicholas Boccio

unread,
Jun 15, 2023, 10:34:44 AM6/15/23
to mtadeveloperresources
Thank you, this worked. Thank you for also providing the MNR API.

My issue with the API portal is that I can't seem to parse all the data I need. For MNR I can't get carriage details and for LIRR I can't get track number either (which is what this thread was started for in the first place I think?). If there's something in the proto configuration that needs to change to parse it correctly, please let me know.

Nick

Reply all
Reply to author
Forward
0 new messages