Rework surface options (#447)

This commit is contained in:
Robin van der Linde 2021-07-29 20:54:24 +02:00
parent 7505b232de
commit 1f53a5f70e
3 changed files with 201 additions and 120 deletions

View file

@ -322,10 +322,33 @@
}, },
"mappings": [ "mappings": [
{ {
"if": "cycleway:surface=wood", "if": "cycleway:surface=unpaved",
"then": { "then": {
"en": "This cycleway is made of wood", "en": "This cycleway is unhardened",
"nl": "Dit fietspad is gemaakt van hout" "nl": "Dit fietspad is onverhard"
},
"hideInAnswer": true
},
{
"if": "cycleway:surface=paved",
"then": {
"en": "This cycleway is paved",
"nl": "Dit fietspad is geplaveid"
},
"hideInAnswer": true
},
{
"if": "cycleway:surface=asphalt",
"then": {
"en": "This cycleway is made of asphalt",
"nl": "Dit fietspad is gemaakt van asfalt"
}
},
{
"if": "cycleway:surface=paving_stones",
"then": {
"en": "This cycleway is made of smooth paving stones",
"nl": "Dit fietspad is gemaakt van straatstenen"
} }
}, },
{ {
@ -338,43 +361,30 @@
{ {
"if": "cycleway:surface=cobblestone", "if": "cycleway:surface=cobblestone",
"then": { "then": {
"en": "This cycleway is made of cobblestone", "en": "This cycleway is made of cobblestone (unhewn or sett)",
"nl": "Dit fietspad is gemaakt van kasseien" "nl": "Dit fietspad is gemaakt van kasseien (natuurlijk of verwerkt)"
} },
"hideInAnswer": true
}, },
{ {
"if": "cycleway:surface=unhewn_cobblestone", "if": "cycleway:surface=unhewn_cobblestone",
"then": { "then": {
"en": "This cycleway is made of asphalt", "en": "This cycleway is made of raw, natural cobblestone",
"nl": "Dit fietspad is gemaakt van asfalt" "nl": "Dit fietspad is gemaakt van ruwe, natuurlijke kasseien"
} }
}, },
{ {
"if": "cycleway:surface=sett", "if": "cycleway:surface=sett",
"then": { "then": {
"en": "This cycleway is paved", "en": "This cycleway is made of flat, square cobblestone",
"nl": "Dit fietspad is geplaveid" "nl": "Dit fietspad is gemaakt van vlakke, rechthoekige kasseien"
} }
}, },
{ {
"if": "cycleway:surface=asphalt", "if": "cycleway:surface=wood",
"then": { "then": {
"en": "This cycleway is paved with stones with a flat top", "en": "This cycleway is made of wood",
"nl": "Dit fietspad is geplaveid met stenen" "nl": "Dit fietspad is gemaakt van hout"
}
},
{
"if": "cycleway:surface=paved",
"then": {
"en": "This cycleway is made of gravel",
"nl": "Dit fietspad is gemaakt van grind"
}
},
{
"if": "cycleway:surface=paving_stones",
"then": {
"en": "This cycleway is unhardened",
"nl": "Dit fietspad is onverhard"
} }
}, },
{ {
@ -493,63 +503,98 @@
}, },
"mappings": [ "mappings": [
{ {
"if": "surface=wood", "if": "surface=unpaved",
"then": { "then": {
"en": "This street is made of wood", "en": "This cycleway is unhardened",
"nl": "Deze straat is gemaakt van hout" "nl": "Dit fietspad is onverhard"
},
"hideInAnswer": true
},
{
"if": "surface=paved",
"then": {
"en": "This cycleway is paved",
"nl": "Dit fietspad is geplaveid"
},
"hideInAnswer": true
},
{
"if": "surface=asphalt",
"then": {
"en": "This cycleway is made of asphalt",
"nl": "Dit fietspad is gemaakt van asfalt"
}
},
{
"if": "surface=paving_stones",
"then": {
"en": "This cycleway is made of smooth paving stones",
"nl": "Dit fietspad is gemaakt van straatstenen"
} }
}, },
{ {
"if": "surface=concrete", "if": "surface=concrete",
"then": { "then": {
"en": "This street is made of concrete", "en": "This cycleway is made of concrete",
"nl": "Deze straat is gemaakt van beton" "nl": "Dit fietspad is gemaakt van beton"
}
},
{
"if": "surface=cobblestone",
"then": {
"en": "This cycleway is made of cobblestone (unhewn or sett)",
"nl": "Dit fietspad is gemaakt van kasseien (natuurlijk of verwerkt)"
},
"hideInAnswer": true
},
{
"if": "surface=unhewn_cobblestone",
"then": {
"en": "This cycleway is made of raw, natural cobblestone",
"nl": "Dit fietspad is gemaakt van ruwe, natuurlijke kasseien"
} }
}, },
{ {
"if": "surface=sett", "if": "surface=sett",
"then": { "then": {
"en": "This street is made of cobblestone", "en": "This cycleway is made of flat, square cobblestone",
"nl": "Deze straat is gemaakt van kasseien" "nl": "Dit fietspad is gemaakt van vlakke, rechthoekige kasseien"
} }
}, },
{ {
"if": "surface=asphalt", "if": "surface=wood",
"then": { "then": {
"en": "This street is made of asphalt", "en": "This cycleway is made of wood",
"nl": "Deze straat is gemaakt van asfalt" "nl": "Dit fietspad is gemaakt van hout"
} }
}, },
{ {
"if": "surface=paved", "if": "surface=gravel",
"then": { "then": {
"en": "This street is paved", "en": "This cycleway is made of gravel",
"nl": "Deze straat is geplaveid" "nl": "Dit fietspad is gemaakt van grind"
} }
}, },
{ {
"if": "surface=fine_gravel", "if": "surface=fine_gravel",
"then": { "then": {
"en": "This street is made from fine gravel", "en": "This cycleway is made of fine gravel",
"nl": "Deze straat is gemaakt van fijn grind" "nl": "Dit fietspad is gemaakt van fijn grind"
}, }
"hideInAnswer": true
}, },
{ {
"if": "surface=cobblestone", "if": "surface=pebblestone",
"then": { "then": {
"en": "This street is made from cobblestone", "en": "This cycleway is made of pebblestone",
"nl": "Deze straat is gemaakt van kasseien" "nl": "Dit fietspad is gemaakt van kiezelsteentjes"
}, }
"hideInAnswer": true
}, },
{ {
"if": "surface=paving_stones", "if": "surface=ground",
"then": { "then": {
"en": "This street is made from paving stones", "en": "This cycleway is made from raw ground",
"nl": "Deze straat is gemaakt van geplaveide stenen" "nl": "Dit fietspad is gemaakt van aarde"
}, }
"hideInAnswer": true
} }
], ],
"question": { "question": {

View file

@ -799,39 +799,42 @@
"render": "This cyleway is made of {cycleway:surface}", "render": "This cyleway is made of {cycleway:surface}",
"mappings": { "mappings": {
"0": { "0": {
"then": "This cycleway is made of wood"
},
"1": {
"then": "This cycleway is made of concrete"
},
"2": {
"then": "This cycleway is made of cobblestone"
},
"3": {
"then": "This cycleway is made of asphalt"
},
"4": {
"then": "This cycleway is paved"
},
"5": {
"then": "This cycleway is paved with stones with a flat top"
},
"6": {
"then": "This cycleway is made of gravel"
},
"7": {
"then": "This cycleway is unhardened" "then": "This cycleway is unhardened"
}, },
"1": {
"then": "This cycleway is paved"
},
"2": {
"then": "This cycleway is made of asphalt"
},
"3": {
"then": "This cycleway is made of smooth paving stones"
},
"4": {
"then": "This cycleway is made of concrete"
},
"5": {
"then": "This cycleway is made of cobblestone (unhewn or sett)"
},
"6": {
"then": "This cycleway is made of raw, natural cobblestone"
},
"7": {
"then": "This cycleway is made of flat, square cobblestone"
},
"8": { "8": {
"then": "This cycleway is made of gravel" "then": "This cycleway is made of wood"
}, },
"9": { "9": {
"then": "This cycleway is made of fine gravel" "then": "This cycleway is made of gravel"
}, },
"10": { "10": {
"then": "This cycleway is made of pebblestone" "then": "This cycleway is made of fine gravel"
}, },
"11": { "11": {
"then": "This cycleway is made of pebblestone"
},
"12": {
"then": "This cycleway is made from raw ground" "then": "This cycleway is made from raw ground"
} }
}, },
@ -870,28 +873,43 @@
"render": "This road is made of {surface}", "render": "This road is made of {surface}",
"mappings": { "mappings": {
"0": { "0": {
"then": "This street is made of wood" "then": "This cycleway is unhardened"
}, },
"1": { "1": {
"then": "This street is made of concrete" "then": "This cycleway is paved"
}, },
"2": { "2": {
"then": "This street is made of cobblestone" "then": "This cycleway is made of asphalt"
}, },
"3": { "3": {
"then": "This street is made of asphalt" "then": "This cycleway is made of smooth paving stones"
}, },
"4": { "4": {
"then": "This street is paved" "then": "This cycleway is made of concrete"
}, },
"5": { "5": {
"then": "This street is made from fine gravel" "then": "This cycleway is made of cobblestone (unhewn or sett)"
}, },
"6": { "6": {
"then": "This street is made from cobblestone" "then": "This cycleway is made of raw, natural cobblestone"
}, },
"7": { "7": {
"then": "This street is made from paving stones" "then": "This cycleway is made of flat, square cobblestone"
},
"8": {
"then": "This cycleway is made of wood"
},
"9": {
"then": "This cycleway is made of gravel"
},
"10": {
"then": "This cycleway is made of fine gravel"
},
"11": {
"then": "This cycleway is made of pebblestone"
},
"12": {
"then": "This cycleway is made from raw ground"
} }
}, },
"question": "What is the surface of the street made from?" "question": "What is the surface of the street made from?"
@ -936,7 +954,7 @@
"then": "Compulsory cycleway <img src='./assets/themes/cycle_infra/Belgian_road_sign_D07.svg' style='width: 3em'>" "then": "Compulsory cycleway <img src='./assets/themes/cycle_infra/Belgian_road_sign_D07.svg' style='width: 3em'>"
}, },
"1": { "1": {
"then": "Compulsory cycleway (with supplementary sign)<br><img src='./assets/themes/cycle_infra/Belgian_road_sign_D07.svg' style='width: 3em'> " "then": "Compulsory cycleway (with supplementary sign)<img src='./assets/themes/cycle_infra/Belgian_road_sign_D07.svg' style='width: 3em'> "
}, },
"2": { "2": {
"then": "Segregated foot/cycleway <img src='./assets/themes/cycle_infra/Belgian_road_sign_D09.svg' style='width: 3em'>" "then": "Segregated foot/cycleway <img src='./assets/themes/cycle_infra/Belgian_road_sign_D09.svg' style='width: 3em'>"

View file

@ -687,39 +687,42 @@
"render": "Dit fietspad is gemaakt van {cycleway:surface}", "render": "Dit fietspad is gemaakt van {cycleway:surface}",
"mappings": { "mappings": {
"0": { "0": {
"then": "Dit fietspad is gemaakt van hout"
},
"1": {
"then": "Dit fietspad is gemaakt van beton"
},
"2": {
"then": "Dit fietspad is gemaakt van kasseien"
},
"3": {
"then": "Dit fietspad is gemaakt van asfalt"
},
"4": {
"then": "Dit fietspad is geplaveid"
},
"5": {
"then": "Dit fietspad is geplaveid met stenen"
},
"6": {
"then": "Dit fietspad is gemaakt van grind"
},
"7": {
"then": "Dit fietspad is onverhard" "then": "Dit fietspad is onverhard"
}, },
"1": {
"then": "Dit fietspad is geplaveid"
},
"2": {
"then": "Dit fietspad is gemaakt van asfalt"
},
"3": {
"then": "Dit fietspad is gemaakt van straatstenen"
},
"4": {
"then": "Dit fietspad is gemaakt van beton"
},
"5": {
"then": "Dit fietspad is gemaakt van kasseien (natuurlijk of verwerkt)"
},
"6": {
"then": "Dit fietspad is gemaakt van ruwe, natuurlijke kasseien"
},
"7": {
"then": "Dit fietspad is gemaakt van vlakke, rechthoekige kasseien"
},
"8": { "8": {
"then": "Dit fietspad is gemaakt van grind" "then": "Dit fietspad is gemaakt van hout"
}, },
"9": { "9": {
"then": "Dit fietspad is gemaakt van fijn grind" "then": "Dit fietspad is gemaakt van grind"
}, },
"10": { "10": {
"then": "Dit fietspad is gemaakt van kiezelsteentjes" "then": "Dit fietspad is gemaakt van fijn grind"
}, },
"11": { "11": {
"then": "Dit fietspad is gemaakt van kiezelsteentjes"
},
"12": {
"then": "Dit fietspad is gemaakt van aarde" "then": "Dit fietspad is gemaakt van aarde"
} }
}, },
@ -758,28 +761,43 @@
"render": "Deze weg is gemaakt van {surface}", "render": "Deze weg is gemaakt van {surface}",
"mappings": { "mappings": {
"0": { "0": {
"then": "Deze straat is gemaakt van hout" "then": "Dit fietspad is onverhard"
}, },
"1": { "1": {
"then": "Deze straat is gemaakt van beton" "then": "Dit fietspad is geplaveid"
}, },
"2": { "2": {
"then": "Deze straat is gemaakt van kasseien" "then": "Dit fietspad is gemaakt van asfalt"
}, },
"3": { "3": {
"then": "Deze straat is gemaakt van asfalt" "then": "Dit fietspad is gemaakt van straatstenen"
}, },
"4": { "4": {
"then": "Deze straat is geplaveid" "then": "Dit fietspad is gemaakt van beton"
}, },
"5": { "5": {
"then": "Deze straat is gemaakt van fijn grind" "then": "Dit fietspad is gemaakt van kasseien (natuurlijk of verwerkt)"
}, },
"6": { "6": {
"then": "Deze straat is gemaakt van kasseien" "then": "Dit fietspad is gemaakt van ruwe, natuurlijke kasseien"
}, },
"7": { "7": {
"then": "Deze straat is gemaakt van geplaveide stenen" "then": "Dit fietspad is gemaakt van vlakke, rechthoekige kasseien"
},
"8": {
"then": "Dit fietspad is gemaakt van hout"
},
"9": {
"then": "Dit fietspad is gemaakt van grind"
},
"10": {
"then": "Dit fietspad is gemaakt van fijn grind"
},
"11": {
"then": "Dit fietspad is gemaakt van kiezelsteentjes"
},
"12": {
"then": "Dit fietspad is gemaakt van aarde"
} }
}, },
"question": "Waaruit is het oppervlak van de straat gemaakt?" "question": "Waaruit is het oppervlak van de straat gemaakt?"
@ -798,7 +816,7 @@
"then": "Verplicht fietspad <img src='./assets/themes/cycle_infra/Belgian_road_sign_D07.svg' style='width: 3em'>" "then": "Verplicht fietspad <img src='./assets/themes/cycle_infra/Belgian_road_sign_D07.svg' style='width: 3em'>"
}, },
"1": { "1": {
"then": "Verplicht fietspad (met onderbord)<br><img src='./assets/themes/cycle_infra/Belgian_road_sign_D07.svg' style='width: 3em'>" "then": "Verplicht fietspad (met onderbord)<img src='./assets/themes/cycle_infra/Belgian_road_sign_D07.svg' style='width: 3em'>"
}, },
"2": { "2": {
"then": "Afgescheiden voet-/fietspad <img src='./assets/themes/cycle_infra/Belgian_road_sign_D09.svg' style='width: 3em'>" "then": "Afgescheiden voet-/fietspad <img src='./assets/themes/cycle_infra/Belgian_road_sign_D09.svg' style='width: 3em'>"