Comments (6)
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.
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.
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.
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.
from bc-ferries-api.
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)
- I am not able to get the info for the bowen ferry HOT 2
- Would be amazing to add the data for gambier/keats HOT 3
- Scraper.py in need of cleanup / refactor
- Update site
- Add non-bookable routes to api HOT 1
- Add custom error messages
- Update website design
- Missing smaller ports HOT 1
- Misordered ports HOT 1
- Code doesnβt have reference to Bowen Island Ferries, despite readme saying it should work. HOT 13
- BC Ferry Times Data Bug HOT 2
- Update terminal names to be more readable
- ISO8601 format for scrapedAt HOT 3
- API Returning empty responses HOT 2
- Any way to check reservation availability? HOT 1
- Fix InsecureRequestWarning in scraper.py
- Scraper running twice every minute
- API Call returning website html rather than json HOT 2
- API slow when updating db
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bc-ferries-api.