opening_hours.js
osmtogeojson
opening_hours.js | osmtogeojson | |
---|---|---|
3 | 2 | |
213 | 669 | |
0.9% | - | |
3.9 | 0.0 | |
about 1 month ago | 5 months ago | |
JavaScript | JavaScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
opening_hours.js
-
Organizing OpenStreetMap Mapping Parties
Yeah, the country location is a requirement to show the opening hours. The library (https://github.com/opening-hours/opening_hours.js) is aware of holidays in many countries, but for that it needs to know what country a POI is in.
The country awareness source code is here: https://github.com/pietervdvn/latlon2country
The idea: I've taken all the country boundaries from OSM (via nominatim); I slice them in four parts. If the resulting geojson is too big, I slice this again until I have small geojsons, suitable to download. If you know the zoomlevel and location, one can use the standard slippy-tile-index to fetch the correct tile. (Alternatively, if the entire tile is within a country, it'll just return the country code)
However, the client also needs to know what zoomlevel there is. For that, I built a search tree.
It's been a while though, so I've forgotten some of the details ;)
-
A parser for the opening_hours fields from OpenStreetMap, with Python bindings
In the mean time the JS library already provides a powerful tool that should fit your needs : https://openingh.ypid.de/evaluation_tool/. This library is more permissive than my implementation compared to the specification, I'm not sure if it is a good or a bad thing.
-
How do I map this? (More info in the comments)
Currently it is not possible to specify this, see https://github.com/opening-hours/opening_hours.js/issues/252
osmtogeojson
-
Overpass API x Python : how to fetch and analyze?
no suggestions on how to deal with the file size, but I image the issue with method #1 is that Overpass/OSM JSON is not GeoJSON. You'd want to find or create a python implementation of osmtogeojson https://github.com/tyrasd/osmtogeojson (this is what overpass-turbo uses to generate the GeoJSON you're downloading form it)
- Processing Open Street Map data with F# and .NET Interactive
What are some alternatives?
opening-hours-rs - A parser for the opening_hours fields from OpenStreetMap.
OpenRailwayMap - An OpenStreetMap-based project for creating a map of the world's railway infrastructure.
OpeningHoursEvaluator - An evaluator for opening hours tag according to OSM opening hours specification
overpass-turbo - A web based data mining tool for OpenStreetMap using the Overpass API.
NetTopologySuite - A .NET GIS solution that is fast and reliable for the .NET platform.
mapbox-gl-js - Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
Openstreetmap - The Rails application that powers OpenStreetMap