# Problems with Ferry feed

**URL:** <https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944>\
**Category:** Real-time Public Transport\
**Created:** [June 27, 2017, 12:30am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944 "2017-06-27T00:30:15Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Halfabee](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@Halfabee](https://opendataforum.transport.nsw.gov.au/u/Halfabee)\
**Post date:** [June 27, 2017, 12:30am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944/1 "2017-06-27T00:30:15Z")

</div>

Hi @alejandro.felman,

there seems to be a problem with the Ferry data, the F3 and F4 calendar does not match the trips.

---

<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:** [June 27, 2017, 12:54am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944/2 "2017-06-27T00:54:12Z")

</div>

Hi @Halfabee, can you please provide a specific example so we can investigate further?

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![Halfabee](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@Halfabee](https://opendataforum.transport.nsw.gov.au/u/Halfabee)\
**Post date:** [June 27, 2017, 1:00am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944/3 "2017-06-27T01:00:42Z")

</div>

I could not find this in the calendar update I did this morning.

“trip\_id”:“DH114-3422”

and if you look at @jxeeno website [AnyTrip](https://anytrip.com.au/map)  
some of the ferries are showing as null.

---

<div class="post-metadata">

**Author:** ![jxeeno](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/jxeeno/32/210_2.png) [@jxeeno](https://opendataforum.transport.nsw.gov.au/u/jxeeno)\
**Post date:** [June 27, 2017, 1:05am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944/4 "2017-06-27T01:05:53Z")

</div>

I’m still in the process of loading this morning’s static dataset. It failed this morning ☹

But looking at the raw dataset, the trip seems to match fine:

```auto
$ grep 'DH114-3422' ferries/trips.txt
DH,3422,DH114-3422,Circular Quay,,1,3422-1005,DH114,1

$ grep '3422' ferries/calendar.txt
3422,1,1,1,1,1,0,0,20170627,20170930

```

Note that the ferry bundle is updated after ~5am daily.

---

<div class="post-metadata">

**Author:** ![jxeeno](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/jxeeno/32/210_2.png) [@jxeeno](https://opendataforum.transport.nsw.gov.au/u/jxeeno)\
**Post date:** [June 27, 2017, 1:25am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944/5 "2017-06-27T01:25:25Z")

</div>

@Halfabee should all be matching fine on the AnyTrip map now

---

<div class="post-metadata">

**Author:** ![Halfabee](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@Halfabee](https://opendataforum.transport.nsw.gov.au/u/Halfabee)\
**Post date:** [June 27, 2017, 1:41am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944/6 "2017-06-27T01:41:15Z")

</div>

Thanks @jxeeeno

I had the calendar update at 4:00am, which seemed to be working fine until today.

I will add some more error checking.

---

<div class="post-metadata">

**Author:** ![jxeeno](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/jxeeno/32/210_2.png) [@jxeeno](https://opendataforum.transport.nsw.gov.au/u/jxeeno)\
**Post date:** [June 27, 2017, 2:43am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944/7 "2017-06-27T02:43:18Z")

</div>

> [@Halfabee](#):
>
> I will add some more error checking.

You can also periodically make `HEAD` requests to the API and check the `Last-Modified` header entry to see if the file has changed 🙂

---

<div class="post-metadata">

**Author:** ![Halfabee](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@Halfabee](https://opendataforum.transport.nsw.gov.au/u/Halfabee)\
**Post date:** [June 27, 2017, 3:30am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944/8 "2017-06-27T03:30:04Z")

</div>

Thanks I will do that. @jxeeno

The other problem I had with the calendar is overlapping dates. @alejandro.felman  
This seems a bit odd.

service\_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start\_date,end\_date  
2816,0,0,0,0,0,1,0,20161212,20170930  
2820,0,0,0,0,0,1,0,20161212,20170930  
2846,1,1,1,1,0,0,0,20161212,20170930  
2848,0,0,0,0,1,0,0,20161212,20170930  
2850,0,0,0,0,0,1,0,20161212,20170930  
2852,0,0,0,0,0,0,1,20161212,20170930  
3072,0,0,0,0,0,1,0,20170127,20170930  
3154,1,1,1,1,1,0,0,20170505,20170930  
3164,0,0,0,0,0,1,0,20170505,20170930  
3168,0,0,0,0,0,0,1,20170505,20170930  
3176,0,0,0,0,0,0,1,20170505,20170930  
3178,0,0,0,0,0,0,1,20170505,20170930  
3180,0,0,0,0,0,0,1,20170505,20170930  
3196,1,1,1,1,1,0,0,20170509,20170930  
3422,1,1,1,1,1,0,0,20170627,20170930  
3424,0,0,0,0,0,1,0,20170627,20170930  
3426,0,0,0,0,0,1,0,20170627,20170930  
3428,0,0,0,0,0,0,1,20170627,20170930  
3430,0,0,0,0,0,0,1,20170627,20170930  
3436,1,1,1,1,1,0,0,20170626,20170930  
3438,1,1,1,1,0,0,0,20170626,20170930  
3440,0,0,0,0,1,0,0,20170626,20170930  
3452,1,1,1,1,1,0,0,20170627,20170731

---

<div class="post-metadata">

**Author:** ![Halfabee](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@Halfabee](https://opendataforum.transport.nsw.gov.au/u/Halfabee)\
**Post date:** [June 27, 2017, 3:51am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944/9 "2017-06-27T03:51:17Z")

</div>

Ok, I understand the calendar, I think more sleep is needed. 😉

---

<div class="post-metadata">

**Author:** ![Halfabee](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@Halfabee](https://opendataforum.transport.nsw.gov.au/u/Halfabee)\
**Post date:** [June 30, 2017, 1:38am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944/10 "2017-06-30T01:38:23Z")

</div>

More questions.

How do you deal with fridays when they are on the same route and friday is set for two service id’s?

 ![](https://us1.discourse-cdn.com/flex019/uploads/nsw/original/1X/7316daa7b4c6ff8e2689143281c74fd75a895d6e.png)

 ![](https://us1.discourse-cdn.com/flex019/uploads/nsw/original/1X/b1b9b4b670735e6f69907d6cc989d65557c69783.png)

---

<div class="post-metadata">

**Author:** ![jxeeno](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/jxeeno/32/210_2.png) [@jxeeno](https://opendataforum.transport.nsw.gov.au/u/jxeeno)\
**Post date:** [June 30, 2017, 7:52am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944/11 "2017-06-30T07:52:27Z")

</div>

I think this may be a flowover issue from the Barangaroo wharf opening?

@alejandro.felman can we look into this? It results in some F4 services showing as duplicates. Trips with service\_id 3422 are not reported in the real-time feed so I presume those are the incorrect ones.

This issue affects other real-time apps too.

---

<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:** [July 3, 2017, 12:25am UTC](https://opendataforum.transport.nsw.gov.au/t/problems-with-ferry-feed/944/12 "2017-07-03T00:25:31Z")

</div>

Hi @jxeeno, @Halfabee, we’ll look into it. Thanks
