# Problem with realtime trip updates feed

**URL:** <https://opendataforum.transport.nsw.gov.au/t/problem-with-realtime-trip-updates-feed/280>\
**Category:** Real-time Public Transport\
**Created:** [August 31, 2016, 11:19pm UTC](https://opendataforum.transport.nsw.gov.au/t/problem-with-realtime-trip-updates-feed/280 "2016-08-31T23:19:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nedsnow](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nedsnow](https://opendataforum.transport.nsw.gov.au/u/nedsnow)\
**Post date:** [August 31, 2016, 11:19pm UTC](https://opendataforum.transport.nsw.gov.au/t/problem-with-realtime-trip-updates-feed/280/1 "2016-08-31T23:19:10Z")

</div>

Hi,

Since Wednesday the buses trip updates feed has (most? ) of its records with no trip\_id. The latest feed I processed had over 66000 stop updates with no trip\_id. The feed is useless without a trip\_id to match against. It was working fine on Tuesday. Has there been a change, or is there something I don’t know?

Thanks,  
Ned

---

<div class="post-metadata">

**Author:** ![alejandro.felman](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@alejandro.felman](https://opendataforum.transport.nsw.gov.au/u/alejandro.felman)\
**Post date:** [August 31, 2016, 11:32pm UTC](https://opendataforum.transport.nsw.gov.au/t/problem-with-realtime-trip-updates-feed/280/2 "2016-08-31T23:32:03Z")

</div>

Hi @nedsnow, could this be related to the outage that we reported yesterday? See [Buses feed unplanned outage - 31/08/2016 11:40 AM - Real-time Public Transport - Open Data - Transport for NSW forum](http://opendata.transport.nsw.gov.au/forum/t/buses-feed-unplanned-outage-31-08-2016-11-40-am/278?u=alejandro.felman)

If it’s all trips from around the time of the outage then I would say it’s related to that. If not, can you please provide an example so I can look into it further.

Thanks, Alex

---

<div class="post-metadata">

**Author:** ![nedsnow](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nedsnow](https://opendataforum.transport.nsw.gov.au/u/nedsnow)\
**Post date:** [September 1, 2016, 1:38am UTC](https://opendataforum.transport.nsw.gov.au/t/problem-with-realtime-trip-updates-feed/280/3 "2016-09-01T01:38:50Z")

</div>

Hi Alex,

On the face of it, it doesn’t appear that it has anything to do with the outage. I noticed that I wasn’t matching realtime updates to trips when I first looked at it about 5:45AM Wednesday morning. Here is a snippet from the current feed via the API explorer concerning a trip on a route I’m particularly interested in:

`entity { id: "11954_75112752_2438_470" trip_update { trip { start_time: "11:50:00" start_date: "20160901" schedule_relationship: SCHEDULED route_id: "2438_470" } `  
As you can see, there is no trip\_id element. It should look like this:

entity {  
id: “8896\_89575150082\_2433\_783\_1”  
trip\_update {  
trip {  
trip\_id: “21049”  
start\_time: “11:02:00”  
start\_date: “20160901”  
schedule\_relationship: SCHEDULED  
route\_id: “2433\_783”  
}

I hope this can be fixed soon, as I can’t do realtime updates until I can match them to trips.

Thanks,  
Ned

---

<div class="post-metadata">

**Author:** ![alejandro.felman](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@alejandro.felman](https://opendataforum.transport.nsw.gov.au/u/alejandro.felman)\
**Post date:** [September 1, 2016, 3:03am UTC](https://opendataforum.transport.nsw.gov.au/t/problem-with-realtime-trip-updates-feed/280/4 "2016-09-01T03:03:27Z")

</div>

Hi @nedsnow, we’re looking into it. I’ll get back to you as soon as I can. Thanks

---

<div class="post-metadata">

**Author:** ![transitapp](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@transitapp](https://opendataforum.transport.nsw.gov.au/u/transitapp)\
**Post date:** [September 1, 2016, 8:50pm UTC](https://opendataforum.transport.nsw.gov.au/t/problem-with-realtime-trip-updates-feed/280/5 "2016-09-01T20:50:27Z")

</div>

Hi,  
concerning this issue, it seems that most of the stop\_time\_update of the feed contain the field schedule\_relationship set to NO\_DATA, which means there is no RT information for that stop.

Is that normal?  
Thanks in advance  
TransitApp

---

<div class="post-metadata">

**Author:** ![alejandro.felman](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@alejandro.felman](https://opendataforum.transport.nsw.gov.au/u/alejandro.felman)\
**Post date:** [September 2, 2016, 12:53am UTC](https://opendataforum.transport.nsw.gov.au/t/problem-with-realtime-trip-updates-feed/280/6 "2016-09-02T00:53:08Z")

</div>

Hi @nedsnow, @transitapp, this issue has now been fixed. You should see Trip IDs for all trips today. Please check and let me know.

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![nedsnow](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nedsnow](https://opendataforum.transport.nsw.gov.au/u/nedsnow)\
**Post date:** [September 2, 2016, 1:20am UTC](https://opendataforum.transport.nsw.gov.au/t/problem-with-realtime-trip-updates-feed/280/7 "2016-09-02T01:20:44Z")

</div>

Hi Alex,

The trip\_ids look find now. Now I can’t connect to the feed ☹

Thanks,  
Ned
