Skip to content

ypid/opening_hours_map

This branch is 43 commits behind opening-hours/opening_hours_map:master.

Folders and files

NameName
Last commit message
Last commit date
Sep 6, 2015
Sep 21, 2016
Nov 27, 2015
Sep 12, 2016
Oct 11, 2016
Aug 11, 2015
Nov 29, 2015
Sep 12, 2016
Sep 20, 2016
Aug 11, 2015
Oct 11, 2016
Nov 29, 2015
Nov 29, 2015

Repository files navigation

opening_hours_map

opening_hours tag is used in OpenStreetMap project to describe time ranges when a specific facility (for example, a cafe) is open.

This map shows the opening_hours as nicely readable time table.

Check it out

A mirror is setup up under: https://openingh.ypid.de/

Install

Just clone the repository:

git clone --recursive https://github.com/opening-hours/opening_hours_map.git

and install it’s dependencies (execute inside the repository):

make dependencies-get

How does it work?

The map uses OpenLayers to show a base map from OpenStreetMap. An additional optional layer shows POIs which are tagged with opening_hours. The data for this additional layer is queried for from the OverpassAPI. The basic query in OverpassQL looks like this:

[out:json][timeout:3][bbox:{{bbox}}];
(
    node["opening_hours"];
    way["opening_hours"];
);
out body center 1000;

Dependencies

Author

Robin ypid Schneider

Credits

  • Big thanks goes to Netzwolf how created some OpenLayers extensions and examples. He also created the same map showing opening_hours with his JS implementation (which is withdrawn in favour of opening_hours.js). Big parts of his code are still in use for the map. Although most code around the opening_hours interpretation was rewritten.

  • Also thanks to FOSSGIS for hosting a public instance of this service. See the wiki.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.6%
  • HTML 5.8%
  • CSS 2.0%
  • Makefile 1.6%