Git Product home page Git Product logo

Comments (6)

samuel-pratt avatar samuel-pratt commented on May 19, 2024

I haven't attempted it yet, honestly I didn't know this info was available on their site. I don't think it would be too hard to add a 'late' field to each sailing on the api, checking that page for the next ferry, and if the text is anything but "On time" set it to true.

I'm currently working on a larger update to revamp the api to be used with a ferry app I'm building, I'll look at adding this to the update.

from bc-ferries-api.

daytonturner avatar daytonturner commented on May 19, 2024

That would be awesome! Given that they return "late" or "cancelled" results of each sailing time, I would suspect you could even match these up for all of the results - in some cases, when there are heavy delays, it cam be helpful to know if the next 2 sailings are late, but the 3rd isn't. They post this ahead of time sometimes, if they know mechanical issues or weather are going to resolve themselves around a certain timeframe.

I dont know if you have a github sponsor page set up (kind of like a tip jar idea that github announced a few years ago) but if you do, I'd be happy to send you a donation for your time!

from bc-ferries-api.

samuel-pratt avatar samuel-pratt commented on May 19, 2024

I agree, having that info for all possible sailings would be very helpful, I'll make sure to add that when I do the update.

I didn't have a sponsor page set up but I just made one, nobody's ever asked about that before. Feel no obligation to do so but anything would be greatly appreciated, and would all go to hosting this project. Thanks!

from bc-ferries-api.

samuel-pratt avatar samuel-pratt commented on May 19, 2024

I've just updated the API with the larger changes, and have included a spot on sailing data for vessel status to be included. I'll look into adding it next week, but this update will also require some changes to any current usage of the api.

from bc-ferries-api.

daytonturner avatar daytonturner commented on May 19, 2024

from bc-ferries-api.

daytonturner avatar daytonturner commented on May 19, 2024

So I happened to notice that delays are now showing up, relatively cleanly, in the API 'time' field.

I wonder if its possible to split the additional 'late' information out into its own field.

e.g.:

{"sailingDuration":"","sailings":[{"time":"11:45 AM Delayed approx. 1h",

Instead of having "Delayed approx. 1h" in time, I wonder if we could put it into the "vesselStatus" field, or another?

It will make parsing the fields much easier!

from bc-ferries-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.