bc-ferries-api icon indicating copy to clipboard operation
bc-ferries-api copied to clipboard

Wrong fill details for next day "(Tomorrow)" sailings

Open shohct opened this issue 11 months ago • 0 comments

For both V1 and V2 of the API, next day sailings (identified by "(Tomorrow)") have wrong fill details.

Example from BC Ferries website: sailings

API returns: api

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].

shohct avatar Feb 25 '24 17:02 shohct