Skip to content

Commit

Permalink
create template for crossing:markings fields, and add regional field …
Browse files Browse the repository at this point in the history
…for DE-AT-CH
  • Loading branch information
tyrasd committed May 11, 2023
1 parent 57fe16f commit 8d45c78
Show file tree
Hide file tree
Showing 22 changed files with 127 additions and 32 deletions.
23 changes: 23 additions & 0 deletions data/fields/crossing/markings-DE-AT-CH.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"key": "crossing:markings",
"type": "combo",
"label": "{crossing/markings}",
"options": [
"zebra",
"yes",
"no",
"dots",
"dashes",
"surface"
],
"autoSuggestions": false,
"iconsCrossReference": "{crossing/markings}",
"stringsCrossReference": "{crossing/markings}",
"locationSet": {
"include": [
"DE",
"AT",
"CH"
]
}
}
5 changes: 4 additions & 1 deletion data/fields/crossing/markings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
},
"locationSet": {
"exclude": [
"BG"
"BG",
"DE",
"AT",
"CH"
]
}
}
24 changes: 24 additions & 0 deletions data/fields/crossing/markings_yes-DE-AT-CH.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "crossing:markings",
"type": "combo",
"label": "{crossing/markings}",
"options": [
"zebra",
"yes",
"no",
"dots",
"dashes",
"surface"
],
"autoSuggestions": false,
"iconsCrossReference": "{crossing/markings}",
"stringsCrossReference": "{crossing/markings}",
"locationSet": {
"include": [
"DE",
"AT",
"CH"
]
},
"default": "yes"
}
5 changes: 4 additions & 1 deletion data/fields/crossing/markings_yes.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"default": "yes",
"locationSet": {
"exclude": [
"BG"
"BG",
"DE",
"AT",
"CH"
]
}
}
23 changes: 23 additions & 0 deletions data/presets/@templates/crossing/markings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"fields": [
"crossing/markings",
"crossing/markings-BG",
"crossing/markings-DE-AT-CH"
],
"geometry": [
"point"
],
"tags": {
"@template": "crossing/markings"
},
"searchable": false,
"locationSet": {
"include": [
"999"
],
"exclude": [
"999"
]
},
"name": "{point}"
}
23 changes: 23 additions & 0 deletions data/presets/@templates/crossing/markings_yes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"fields": [
"crossing/markings_yes",
"crossing/markings_yes-BG",
"crossing/markings_yes-DE-AT-CH"
],
"geometry": [
"point"
],
"tags": {
"@template": "crossing/markings_yes"
},
"searchable": false,
"locationSet": {
"include": [
"999"
],
"exclude": [
"999"
]
},
"name": "{point}"
}
2 changes: 1 addition & 1 deletion data/presets/highway/crossing.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"crossing",
"tactile_paving",
"crossing/island",
"crossing/markings",
"{@templates/crossing/markings}",
"crossing_raised"
],
"moreFields": [
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/crossing/_marked.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"crossing",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing/markings-BG",
"{@templates/crossing/markings}",
"crossing_raised"
],
"geometry": [
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/crossing/_zebra.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"crossing",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing/markings-BG",
"{@templates/crossing/markings}",
"crossing_raised"
],
"geometry": [
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/crossing/traffic_signals.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"crossing",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing/markings-BG",
"{@templates/crossing/markings}",
"crossing_raised",
"button_operated",
"traffic_signals/sound",
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/crossing/uncontrolled.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"crossing",
"tactile_paving",
"crossing/island",
"crossing/markings_yes",
"crossing/markings_yes-BG",
"{@templates/crossing/markings_yes}",
"crossing_raised"
],
"geometry": [
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/cycleway/_crossing.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"surface",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing/markings-BG",
"{@templates/crossing/markings}",
"access"
],
"geometry": [
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/cycleway/crossing/_marked.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"surface",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing/markings-BG",
"{@templates/crossing/markings}",
"crossing_raised",
"access"
],
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/cycleway/crossing/bicycle_foot.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"smoothness",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing/markings-BG",
"{@templates/crossing/markings}",
"crossing_raised",
"access"
],
Expand Down
7 changes: 4 additions & 3 deletions data/presets/highway/cycleway/crossing/traffic_signals.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
"oneway",
"crossing",
"surface",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing/markings-BG",
"{@templates/crossing/markings}",
"crossing_raised",
"button_operated",
"traffic_signals/sound",
"traffic_signals/vibration",
"access"
],
"moreFields": [
"tactile_paving"
],
"geometry": [
"line"
],
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/cycleway/crossing/uncontrolled.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"surface",
"tactile_paving",
"crossing/island",
"crossing/markings_yes",
"crossing/markings_yes-BG",
"{@templates/crossing/markings_yes}",
"crossing_raised",
"access"
],
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/footway/_crossing.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"surface",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing/markings-BG",
"{@templates/crossing/markings}",
"crossing_raised",
"access"
],
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/footway/crossing/_marked.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"surface",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing/markings-BG",
"{@templates/crossing/markings}",
"crossing_raised",
"access"
],
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/footway/crossing/_zebra.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"surface",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing/markings-BG",
"{@templates/crossing/markings}",
"crossing_raised",
"access"
],
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/footway/crossing/traffic_signals.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"surface",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing/markings-BG",
"{@templates/crossing/markings}",
"crossing_raised",
"button_operated",
"traffic_signals/sound",
Expand Down
3 changes: 1 addition & 2 deletions data/presets/highway/footway/crossing/uncontrolled.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"surface",
"tactile_paving",
"crossing/island",
"crossing/markings_yes",
"crossing/markings_yes-BG",
"{@templates/crossing/markings_yes}",
"crossing_raised",
"access"
],
Expand Down
8 changes: 8 additions & 0 deletions interim/source_strings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1387,10 +1387,14 @@ en:
terms: '[translate with synonyms or related terms for ''Crossing Markings'', separated by commas]'
crossing/markings-BG:
# crossing:markings=* | Local preset for countries "BG"
crossing/markings-DE-AT-CH:
# crossing:markings=* | Local preset for countries "DE", "AT", "CH"
crossing/markings_yes:
# crossing:markings=*
crossing/markings_yes-BG:
# crossing:markings=* | Local preset for countries "BG"
crossing/markings_yes-DE-AT-CH:
# crossing:markings=* | Local preset for countries "DE", "AT", "CH"
crossing_raised:
# traffic_calming=*
label: Raised
Expand Down Expand Up @@ -5542,6 +5546,10 @@ en:
presets:
'@templates/contact':
# '@template=contact | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key). | Local preset for countries "999"'
'@templates/crossing/markings':
# '@template=crossing/markings | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key). | Local preset for countries "999"'
'@templates/crossing/markings_yes':
# '@template=crossing/markings_yes | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key). | Local preset for countries "999"'
'@templates/internet_access':
# '@template=internet_access | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key). | Local preset for countries "999"'
'@templates/poi':
Expand Down

0 comments on commit 8d45c78

Please sign in to comment.