Proposal:Opening hours workday extension

From OpenStreetMap Wiki
Jump to navigation Jump to search
Opening hours workday extension
Proposal status: Proposed (under way)
Proposed by: Riiga
Tagging: opening_hours=*
Applies to: node, way, area, relation
Definition: Extend opening hours syntax to support the usage or workdays and days before weekends
Statistics:

Draft started: 2023-08-07
RFC start: 2023-08-16


Proposal

This proposal aims to add support for using workdays and similar aliases for weekdays in the opening hours syntax, namely the weekday selector part of the formal specification.

Rationale

Many roads and parking lanes are mapped in OSM using conditional restrictions which heavily depend on use of opening hours tagging. There are a few shortcomings when it comes to representing such restrictions.

  • Firstly, there is no support for workdays (typically Monday to Friday, but also e.g. Sunday to Thursday depending on country).
  • Secondly, there is no good support for the specific day before a day of rest or public holiday. To correctly map parking restrictions in the Nordic countries, support for those kind of weekday selectors are necessary.

Tagging

The formal specification for opening hours is extended to include the following weekday selectors, alongside the already existing PH and SH:

Symbol Definition Comment
<workday> WD (WorkDay)
Any workday of a week. The legal definition of a workday varies across the globe, but in Europe this is commonly Monday-Friday or Monday-Saturday (despite work on Saturday being uncommon, the legal definition still stands in e.g. the Nordic countries).
<workday_before_day_of_rest_or_public_holiday> WR (Workday before day of Rest)
Any workday before a day of rest or a public holiday. This is commonly a Saturday, but not always. Examples of other days include (in many parts of Europe) the Wednesday before Ascension (always on a Thursday) or the day before the first of May (which is a common public holiday).

Examples

Sign Tagging
Sweden road sign C39.svg
Sweden road sign T6.svg

parking:right:restriction:conditional=no_stopping @ (Mo-Fr 08:00-17:00, Sa 08:00-14:00, Su,PH 08:00-13:00) (Mo-Fr used for workdays, Saturdays used for day before Sunday and PH.)
parking:right:restriction:conditional=no_stopping @ (WD 08:00-17:00, WR 08:00-14:00, Su,PH 08:00-13:00) (With new syntax, tagging is correct.)

Parking disabled weekdays 6-17.jpg

parking:right:access=yes

parking:right:access:conditional=no @ (Mo-Sa 06:00-17:00); yes @ PH
parking:right:disabled:conditional=designated @ (Mo-Sa 06:00-17:00); yes @ PH

parking:right:access:conditional=no @ (WD 06:00-17:00)
parking:right:disabled:conditional=designated @ (WD 06:00-17:00)


Features/Pages affected

External discussions

Comments

Please comment on the discussion page.