Functional Weave
Code in Python

fleet.tachograph-rest@1.0.2

data/rest-limits.json

1,572 bytes · view raw

[
  { "rule": "daily-rest-window", "value": 1440, "validFrom": "2007-04-11", "validTo": null, "note": "Art. 8(2): a new daily rest within each 24 hours after the end of the previous daily or weekly rest" },
  { "rule": "regular-daily-rest", "value": 660, "validFrom": "2007-04-11", "validTo": null, "note": "Art. 4(g): a regular daily rest is at least 11 hours" },
  { "rule": "reduced-daily-rest", "value": 540, "validFrom": "2007-04-11", "validTo": null, "note": "Art. 4(g), 8(2): a reduced daily rest is at least 9 hours but less than 11" },
  { "rule": "split-rest-first", "value": 180, "validFrom": "2007-04-11", "validTo": null, "note": "Art. 4(g): a split regular daily rest is at least 3 hours ..." },
  { "rule": "split-rest-second", "value": 540, "validFrom": "2007-04-11", "validTo": null, "note": "Art. 4(g): ... then at least 9 hours" },
  { "rule": "reduced-daily-rests-allowed", "value": 3, "validFrom": "2007-04-11", "validTo": null, "note": "Art. 8(4): at most three reduced daily rests between any two weekly rests" },
  { "rule": "regular-weekly-rest", "value": 2700, "validFrom": "2007-04-11", "validTo": null, "note": "Art. 4(h): a regular weekly rest is at least 45 hours" },
  { "rule": "reduced-weekly-rest", "value": 1440, "validFrom": "2007-04-11", "validTo": null, "note": "Art. 4(h), 8(6): a reduced weekly rest is at least 24 hours" },
  { "rule": "weekly-rest-window", "value": 8640, "validFrom": "2007-04-11", "validTo": null, "note": "Art. 8(6): a weekly rest starts no later than the end of six 24-hour periods after the previous one" }
]