bc-ferries-api
bc-ferries-api copied to clipboard
Wrong fill details for next day "(Tomorrow)" sailings
For both V1 and V2 of the API, next day sailings (identified by "(Tomorrow)") have wrong fill details.
Example from BC Ferries website:
API returns:
From scraper.go:
- Fill is taken from
reducedArray[2]
, - CarFill from
reducedArray[3]
, and - OversizeFill from
reducedArray[4]
.
But seems like for next day sailings, it should be 1 index higher, where:
- Fill should be taken from
reducedArray[3]
, - CarFill from
reducedArray[4]
, and - OversizeFill from
reducedArray[5]
.