Skip to content

[Suggestion] Make SH and PH evaluation optional #463

@naerymdan

Description

@naerymdan

I have an external set of opening hours that might or might not specify PH/SH. I do not have data for the country in question. I'd rather be able to still get general information form this library than the full stop error "no holiday definition".

Could we have something like:

new opening_hours(
  openingHours,  
  {
    lat: 41.328937, 
    lon: 19.818096,
    address: {
      country_code: "AL",
      state: 'N/A' 
    },
    {
      skip_ph: true,
      skip_sh: true 
    }
  }
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureIntroduction of new functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions