Get JSON guidelines actives in a specific country.
$my_guidelines = json_decode($api_result);
my_guidelines= JSON.parse(api_result);
Field | Description | Example |
---|---|---|
meta | Metadatas for the API (basically contains revision number) | {"ver": "1.0"} |
pays | Country name | INDIA |
advices | Table containing advices for the specified country | [advice, advice, ...] |
advices_fr | Table containing advice for a return to France, from the specified country | [advice, advice, ...] |
Advice object
Field | Description | Example |
---|---|---|
id | Identification number | 100 |
summary | Lors de votre voyage, vous devrez suivre les directives imposées par le gouvernement local de Inde. | |
details | Guidelines typology | COVID-19 |
risk_level | Table containing id, name and details of the risk | [ "id": "moderate", "name": "modéré", "details": "La transmission du COVID-19 est modérée en Inde" ] |
updated_at | Date last update | 2021-10-16T00:00:35+00:00 |
guidelines | Table list of Guidelines objects | [guideline, guideline, ...] |
level | Mesure calculated to get a average level of constraint. Severity mamimum is 10. | 7.62 |
Guideline object
Field | Description | Example |
---|---|---|
category | Table containing guideline category type | [ id: "use_of_mask", name: "Utilisation d'un masque" ] |
sub_category | Table containing guideline sub category | [ id: "required", name: "Obligatoire" ] |
summary | General guideline summary for the country selected | Le port du masque est obligatoire. |
details | Specifics mesures and guidelines for the selected country | Les masques faciaux sont obligatoires dans les espaces publics, les environnements clos et dans les transports publics. |
severity | Indicator for guidelines constraint | 3/3 |
Category and Sub-category
Category ID | Sub-Categoriy ID |
---|---|
government_measures | - no_restrictions - restrictions_in_place - state_of_emergency - unknown |
use_of_mask | - not_required - recommended - required - unknown |
public_transportation | - operating - restrictions_in_place - closed - unknown |
restaurants | - open - restrictions_in_place - closed - unknown |
bars | - open - restrictions_in_place - closed - unknown |
nightclubs | - open - restrictions_in_place - closed - unknown |
shops | - open - restrictions_in_place - closed - unknown |