Incorrect LIRR track number from gtfs-rt

已查看 281 次
跳至第一个未读帖子

Zahidur R

未读,
2022年9月19日 08:53:472022/9/19
收件人 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

未读,
2022年9月19日 10:02:262022/9/19
收件人 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

未读,
2022年9月19日 14:44:522022/9/19
收件人 mtadeveloperresources

Fisher, Will

未读,
2022年9月19日 14:56:242022/9/19
收件人 mtadevelop...@googlegroups.com

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

clevercommute

未读,
2022年9月19日 15:36:462022/9/19
收件人 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

未读,
2022年9月19日 23:35:022022/9/19
收件人 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

未读,
2022年9月20日 06:00:142022/9/20
收件人 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

未读,
2022年9月20日 09:32:042022/9/20
收件人 mtadevelop...@googlegroups.com

You can email me offline to discuss.

Zahidur R

未读,
2023年2月20日 13:23:472023/2/20
收件人 mtadeveloperresources
http://backend.mylirr.org/gtfs is down now and no longer working. 
Do you have new API URL.?

Fisher, Will

未读,
2023年2月20日 13:26:302023/2/20
收件人 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

未读,
2023年2月20日 15:48:032023/2/20
收件人 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

未读,
2023年6月5日 20:50:032023/6/5
收件人 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

未读,
2023年6月5日 20:56:272023/6/5
收件人 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

未读,
2023年6月6日 11:26:222023/6/6
收件人 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

未读,
2023年6月6日 11:28:202023/6/6
收件人 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

未读,
2023年6月6日 12:05:472023/6/6
收件人 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

未读,
2023年6月7日 16:43:012023/6/7
收件人 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

未读,
2023年6月12日 15:54:582023/6/12
收件人 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

未读,
2023年6月14日 14:53:022023/6/14
收件人 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

未读,
2023年6月15日 10:34:442023/6/15
收件人 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

回复全部
回复作者
转发
0 个新帖子