Skip to content

Support location in addition to ISO 3166-2 codes as region #57

@vice

Description

@vice

In Spain we have national and regional holidays that can be covered by ISO 3166-2:ES codes but also 2 days of local holidays. And by local I mean holidays different by location not province. i.e. a Granada, Málaga or Seville holiday is not for the whole province but just for the city.

I think we must use ISO 3166 codes for regions that are covered but for smaller divisions accept the complete localized name of the location. Holidays by regions smaller and/or not in ISO 3266 codes could be the case in other countries. At least it is for Spain.

region meaning
AN for Andalusia autonomous community ISO 3166-2:ES
GR for Granada province ISO 3166-2:ES
MA for Málaga province ISO 3166-2:ES
SE for Seville province ISO 3166-2:ES
Granada for Granada city (proposed)
Málaga for Málaga city (proposed)
Sevilla for Seville city (proposed)

But I don't know if the region parameter can handle safely UTF-8 and spaces present in some location's name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions