samuel-pratt / bc-ferries-api

🛳 The only public API for retrieving current data on BC Ferries sailings.
https://bcferriesapi.ca
MIT License
32 stars 10 forks source link

Incomplete data for Salt Spring Sailings #45

Open dennislbc opened 4 months ago

dennislbc commented 4 months ago

I am working on a way for salt springers to monitor the relevant ferries easier, but I am missing a bunch of data.

Here's some examples, the only route information I can find for Tsawwassen to Long Harbour is here: https://www.bcferriesapi.ca/api/TSA/SGI/

This is good data for that route, but there is no inverse, I cannot get any data from SGI to TSA (Long Harbour to Tsawwassen) which is actually the more relevant information for salt springers.

When it comes to Fulford Harbour there's varying data so v2/capacity/ I can get good data including status for sailings from SWB to FUL in addition to the actual times the boats left and arrived which is very nice. But then for the inverse https://www.bcferriesapi.ca/api/FUL/SWB/ is all I have, and its decent because it does have an isCancelled bool, but there's no information on when the ferry actually left.

Lastly, Crofton to Vesuvius all that's available is the non-capacity api which produces the generic schedule. So I cannot tell if anything has been cancelled or running late or anything.

Am I missing something? Is this data available elsewhere? If not, is there any way to extend to have this data?

Thanks!

pbadams commented 4 months ago

Hi @dennislbc,

This API scrapes the https://bcferries.com web pages for its data, and so its limited to what BC Ferries put on the web site.

I can't find any realtime data pages for Fulford Harbour anywhere on https://bcferries.com (unless you can share the link here). If that is the case, then we're out of luck until BC Ferries decide to publish that data.

dennislbc commented 4 months ago

Hi @dennislbc,

This API scrapes the https://bcferries.com web pages for its data, and so its limited to what BC Ferries put on the web site.

I can't find any realtime data pages for Fulford Harbour anywhere on https://bcferries.com (unless you can share the link here). If that is the case, then we're out of luck until BC Ferries decide to publish that data.

Hey boss, thanks for the reply. The V2 capacity api shows departure and arrival time data for Swartz Bay to Fulford but not the inverse. Not sure where its scraping it from.

Overview of salt spring data:

Only half of the pertinent routes are available for any additional data, almost doesn't seem worth really implementing, especially cause none of the data is for leaving salt spring just coming to. Still has value, but much less than leaving.

image