Skip to content

Commit

Permalink
Introducing legal rules per country
Browse files Browse the repository at this point in the history
  • Loading branch information
PanierAvide committed Apr 18, 2020
1 parent a424b34 commit 6e5ea7f
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 11 deletions.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/legal-status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Legal opening status
about: Opening or closing status for a category of places in a country
title: Category of places (country)
labels: legal info
assignees: ''

---

<!--
Thanks for adding your information below
-->

* __Country and area__ : <!-- Country and political subdivision where rule apply -->
* __Category__ : <!-- Supermarket, fuel, bakery, ... -->
* __Legal opening rule__ : <!-- Legally allowed to open, legally closed, can legally open only for delivery/takeaway/housing... -->
* __Time period__ : <!-- Date range for which this rule apply -->
* __Source__ : <!-- URL to web page where you got info from -->
53 changes: 42 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,55 @@
# Chain stores open during Covid-19 lockdown
# Brand and services open during Covid-19 lockdown

![Logo](images/logo.png)

Which chain stores are open during Covid-19 lockdown ? [Answer is here !](rules.csv)
Which chain stores or services are open during Covid-19 lockdown ? [Answers are here](rules.csv) and [here](legal_rules.csv) !

The objective of this repository is to list rules applicable to chain stores worldwide concerning their opening during the Covid-19 lockdown period. This allows to create maps like [Ça reste ouvert](https://caresteouvert.fr) (it stays open in French) of open shops during lockdown.
The objective of this repository is to list rules applicable to services and chain stores worldwide concerning their opening during the Covid-19 lockdown period. This allows to create maps like [Ça reste ouvert](https://caresteouvert.fr) (it stays open in French) of open shops and services during lockdown.

Examples :

* Do-it-yourself shops "Pro hardware" are open country-wide from 09:00 to 18:00
* Bakeries "Bonne baguette" are closed country-wide
* Do-it-yourself are only allowed to offer delivery or drive-through services
* Do-it-yourself brand "Pro hardware" is open country-wide from 09:00 to 18:00
* Bakeries are allowed to open country-wide
* But bakery brand "Bonne baguette" is closed country-wide


## How you can contribute

### Report information
### Report info about chain stores

To report information about a chain of stores (at least 10 shops, for independent shops please use [opening_hours:covid19 tag on OpenStreetMap](https://wiki.openstreetmap.org/wiki/Key:opening_hours:covid19)), you can [create an issue](https://github.com/PanierAvide/Covid_enseignes/issues) in this repository.

Your issue should be formatted like below :
What you will need to complete the issue:

```
* __Brand__ : brand name of concerned shops
* __Category__ : what kind of shop it is (supermarket, fuel, laundry...)
* __Opening rule__ : shops closed / shops open as usual / shops open with adapted opening hours (give some details : on appointment, only by delivery...)
* __Wikipedia / Wikidata__ : (optional) URL to Wikipedia or [Wikidata](https://www.wikidata.org/) page
* __Opening hours__ : (optional) URL to web page with opening hours list for shops
* __Source__ : URL to web page where you got info from
```

__Before creating an issue__, please check that info you want to report [is not already listed](rules.csv) or [in another open issue](https://github.com/PanierAvide/Covid_enseignes/issues?q=is%3Aissue).

__Pro-tip__ : to easily find missing brands, you can have a look at [this CSV file](https://download.osmontrouge.fr/caresteouvert/stats_brand_count.csv), which lists brands found in "Ça reste ouvert" data. Open it in a spreadsheet software (like LibreOffice), then filter on most recent date. Look at brands with `unknown` status, there are many chances they don't exist in our repository.


### Report info about legal opening/closing status in your country

To report information about legal opening status of various kind of places in your country, you can [create an issue](https://github.com/PanierAvide/Covid_enseignes/issues) in this repository.

What you will need to complete the issue:

* __Country and area__ : country and political subdivision where rule apply
* __Category__ : what kind of shop or service is concerned (supermarket, fuel, laundry...)
* __Legal opening rule__ : legally allowed to open, legally closed, can legally open only for delivery/takeaway/housing...
* __Time period__ : date range for which this rule apply
* __Source__ : URL to web page where you got info from (preferably government source)

__Before creating an issue__, please check that info you want to report [is not already listed](legal_rules.csv) or [in another open issue](https://github.com/PanierAvide/Covid_enseignes/issues?q=is%3Aissue).

### Integrate information

Based on open issues, and if you're comfortable with GitHub, you can integrate information received into the CSV file `rules.csv`. Then, propose a pull request to the master branch, and remember to link the corresponding issue in your commit comment.
Based on open issues, and if you're comfortable with GitHub, you can integrate information received into CSV files `rules.csv` and `legal_rules.csv`. Then, offer a pull request to the master branch, and remember to link the corresponding issue in your commit comment.


## Result
Expand All @@ -46,6 +60,8 @@ The aim is to produce a worlwide map showing open shops during lockdown, and the
* It makes easier to find a shop near you instead of going far from your home
* It allows to see how things are evolving during the lockdown

### Open chain stores (`rules.csv`)

All data is compiled in [a single spreadsheet file](rules.csv) `rules.csv`, which defines received opening rules to be used with OpenStreetMap and Wikidata. It has the following format (encoding : UTF-8, delimiter : `,`) :

* `country` : 2-letters, uppercase country code ([ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))
Expand All @@ -59,6 +75,21 @@ All data is compiled in [a single spreadsheet file](rules.csv) `rules.csv`, whic
* `source_url` : URL of web page where you find info from
* `opening_hours_url` : URL of web page where opening hours during lockdown are listed

### Stores and services legally allowed to open (`legal_rules.csv`)

Data about legal opening status is compiled in [a single spreadsheet file](legal_rules.csv) `legal_rules.csv`, listing what can or cannot be open in a given country, for a given period. __This doesn't mean everything will be open__, but that these types shop can open if they want to. It has the following format (encoding : UTF-8, delimiter : `,`) :

* `country` : 2-letters, uppercase country code ([ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))
* `country_subarea` : (optional) 2-letters, uppercase country code ([ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), followed by `-` character and reference of a sub-area in country. For example, `FR-35` for Ille-et-Vilaine department in France.
* `category` : category of chain stores (close to OpenStreetMap tagging)
* `category_osm` : JSON list of OpenStreetMap tags. Each object in list is a combination of necessary tags. Example `[ { "amenity": "bank", "bank": "pro" }, { "shop": "money_lender" } ]` = (amenity=bank AND bank=pro) OR (shop=money_lender).
* `start_date` : start date for period the rule is valid, in YYYY-MM-DD format
* `end_date` : (optional) end date for period the rule is valid, in YYYY-MM-DD format
* `legal_state` : legal opening status for this category. Values can be : `open` (no restriction), `only:...` (comma-separated restricted list of allowed services), `closed` (fully closed). By default, if a category doesn't appear in CSV file, __we consider it as closed__.
* `source_url` : URL of web page where your information comes from (preferably from government source)

### Open chain stores in France (`regles.csv`)

For backward compatibility, another __deprecated__ file `regles.csv` is also available (only French shops) with this format :

* `nom_enseigne` : nom de l'enseigne
Expand Down
Binary file modified images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions legal_rules.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
country,country_subarea,category,category_osm,start_date,end_date,legal_state,source_url
FR,,food,"[ { ""shop"" : ""convenience|supermarket|frozen_food|butcher|cheese|seafood|greengrocer|deli|spices|honey|health_food|pasta|cannery|chocolate|tea|coffee|dairy|confectionery|farm|bakery|pastry"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,pharmacy,"[ { ""amenity"": ""pharmacy"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,fuel,"[ { ""amenity"": ""fuel"" }, { ""shop"": ""gas|convenience;gas|gas;convenience"" }, { ""vending"": ""fuel"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,financial,"[ { ""amenity"": ""bank"" }, { ""office"": ""financial|insurance"" }, { ""shop"": ""money_lender"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,newsagent,"[ { ""shop"": ""kiosk|newsagent"" }, { ""vending"": ""newspapers"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,tobacco,"[ { ""shop"": ""tobacco|newsagent;tobacco|tobacco;newsagent"" }, { ""tobacco"": ""yes|only"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,public_transport,"[ { ""railway"": ""station"" }, { ""highway"": ""bus_stop"" }, { ""public_transport"": ""stop_position|platform"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,public_service,"[ { ""amenity"": ""townhall"" }, { ""office"": ""government"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,restaurant,"[ { ""amenity"": ""restaurant|fast_food|ice_cream|coffee"" } ]",2020-03-17,2020-05-10,"only:delivery,takeaway,drive_through",https://www.gouvernement.fr/info-coronavirus
FR,,hotel,"[ { ""tourism"": ""hotel|hostel|apartment|guest_house|motel|camp_site"" } ]",2020-03-17,2020-05-10,only:housing,https://www.gouvernement.fr/info-coronavirus
FR,,vehicle,"[ { ""shop"": ""car_parts|car_repair"" }, { ""amenity"": ""vehicle_inspection"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,agrarian,"[ { ""shop"": ""agrarian"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,alcohol,"[ { ""shop"": ""wine|beverages|alcohol"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,food_bank,"[ { ""amenity"": ""social_facility"", ""social_facility"": ""food_bank|soup_kitchen"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,electronics,"[ { ""shop"": ""computer|electronics|electronics_repair|mobile_phone"" }, { ""craft"": ""electronics_repair"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,doityourself,"[ { ""shop"": ""doityourself|hardware|paint|glaziery"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,medical_supply,"[ { ""shop"": ""medical_supply|optician|hearing_aids"" }, { ""craft"": ""optician"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,pet_food,"[ { ""shop"": ""pet"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,vending_machine,"[ { ""amenity"": ""vending_machine"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,car_rental,"[ { ""amenity"": ""car_rental"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,employement_agency,"[ { ""office"": ""employment_agency"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,laundry,"[ { ""shop"": ""dry_cleaning|laundry"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus
FR,,funeral,"[ { ""shop"": ""funeral_directors"" } ]",2020-03-17,2020-05-10,open,https://www.gouvernement.fr/info-coronavirus

0 comments on commit 6e5ea7f

Please sign in to comment.