opening hours formats

(Difference between revisions)

Jump to: navigation, search
m (OpenStreetMap: ])
Current revision (20:53, 6 September 2017) (view source)
(incorporate OSM key opening hours stuff from examples page)
 
Line 10: Line 10:
OpenStreetMap allows venues to be tagged with the [https://wiki.openstreetmap.org/wiki/Opening_hours <var>opening_hours</var>] tag. The value of this tag has been formalized and is defined in the [http://www.netzwolf.info/en/cartography/osm/time_domain/ TimeDomain specification], where there is also a JavaScript implementation.
OpenStreetMap allows venues to be tagged with the [https://wiki.openstreetmap.org/wiki/Opening_hours <var>opening_hours</var>] tag. The value of this tag has been formalized and is defined in the [http://www.netzwolf.info/en/cartography/osm/time_domain/ TimeDomain specification], where there is also a JavaScript implementation.
-
The same string-based format is used to mark the times of religious services in places of worship using the [https://wiki.openstreetmap.org/wiki/Key:service_times <var>service_times</var>] tag, the times of collections from post boxes with the [https://wiki.openstreetmap.org/wiki/Key:collection_times <var>collection-times</var>] tag, and there is a proposal to mark venues which allow smoking (possibly in a separate area) with the [https://wiki.openstreetmap.org/wiki/Key:smoking_hours <var>smoking_hours</var>] tag.
+
[http://wiki.openstreetmap.org/wiki/Key:opening_hours Key:opening_hours] is also defined on the OSM Wiki.
 +
 
 +
The same string-based format is used to mark the times of religious services in places of worship using the [https://wiki.openstreetmap.org/wiki/Key:service_times <var>service_times</var>] tag, the times of collections from post boxes with the [https://wiki.openstreetmap.org/wiki/Key:collection_times <var>collection-times</var>] tag, and there is a proposal to mark venues which allow smoking (possibly in a separate area) with the [https://wiki.openstreetmap.org/wiki/Key:smoking_hours <var>smoking_hours</var>] tag, and also with the 'lit' tag to specify when a feature (e.g. building) is lit up.
A broader proposal also exists for using the <var>opening_hours</var> format for describing [https://wiki.openstreetmap.org/wiki/Conditional_restrictions conditional restrictions], for instance roads that have speed limits that vary depending on time of day, and roads that allow only specific types of traffic (buses and bicycles, for instance) during periods of the day.
A broader proposal also exists for using the <var>opening_hours</var> format for describing [https://wiki.openstreetmap.org/wiki/Conditional_restrictions conditional restrictions], for instance roads that have speed limits that vary depending on time of day, and roads that allow only specific types of traffic (buses and bicycles, for instance) during periods of the day.

Current revision


This is part of an effort per the microformats process to research, gather examples, and brainstorm for a microformat for marking up the opening-hours for a business or organization.


OpenStreetMap

OpenStreetMap allows venues to be tagged with the opening_hours tag. The value of this tag has been formalized and is defined in the TimeDomain specification, where there is also a JavaScript implementation.

Key:opening_hours is also defined on the OSM Wiki.

The same string-based format is used to mark the times of religious services in places of worship using the service_times tag, the times of collections from post boxes with the collection-times tag, and there is a proposal to mark venues which allow smoking (possibly in a separate area) with the smoking_hours tag, and also with the 'lit' tag to specify when a feature (e.g. building) is lit up.

A broader proposal also exists for using the opening_hours format for describing conditional restrictions, for instance roads that have speed limits that vary depending on time of day, and roads that allow only specific types of traffic (buses and bicycles, for instance) during periods of the day.

Comments can also be added in quotations.

Examples:

Google maps display

Google places uses this format to *display* the opening hours, and then applies some javascript to hide the lines which are not immediately useful: The translate the day names and the time formats into the users locale.

This is clearly rendered data for end user consumption and not a format one can use to establish a standard.

See an example here with opening hours: http://maps.google.com/maps/place?cid=17374953169507020841

<table style="" id="oh-ov-table" class="oh-table">
      <tbody>
        <tr class="oh-highlight-day">
          <td class="oh-day">
            Montag
          </td>
          <td dir="ltr">
            11:00-16:00
          </td>
        </tr>
        <tr>
          <td class="oh-day">
            Dienstag
          </td>
          <td dir="ltr">
            11:00-22:00
          </td>
        </tr>
        <tr>
          <td class="oh-day">
            Mittwoch
          </td>
          <td dir="ltr">
            11:00-22:00
          </td>
        </tr>
        <tr>
          <td class="oh-day">
            Donnerstag
          </td>
          <td dir="ltr">
            11:00-22:00
          </td>
        </tr>
        <tr>
          <td class="oh-day">
            Freitag
          </td>
          <td dir="ltr">
            11:00-16:00
          </td>
        </tr>
        <tr>
          <td class="oh-day">
            Samstag
          </td>
          <td dir="ltr">
            Geschlossen
          </td>
        </tr>
        <tr>
          <td class="oh-day">
            Sonntag
          </td>
          <td dir="ltr">
            Geschlossen
          </td>
        </tr>
      </tbody>
    </table>

see also

opening hours formats was last modified: Wednesday, September 6th, 2017

Views