Git Product home page Git Product logo

opening_hours_map's Introduction

opening_hours_map

Build Status

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):

sudo apt-get install jq
npm install bower -g
npm install uglify-js -g
make dependencies-get
cd opening_hours.js && npm i && cd ..

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.

opening_hours_map's People

Contributors

ypid avatar matkoniecz avatar kristjanesperanto avatar holgerjeromin avatar dex2000 avatar goldfndr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.