Skip to content

Commit 754d073

Browse files
authored
add fields for level crossing (#194)
1 parent b2aefe9 commit 754d073

File tree

6 files changed

+56
-0
lines changed

6 files changed

+56
-0
lines changed

data/fields/crossing/barrier.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"key": "crossing:barrier",
3+
"type": "combo",
4+
"label": "Barrier Arm",
5+
"strings": {
6+
"options": {
7+
"full": "Full",
8+
"double_half": "Double Half",
9+
"half": "Half",
10+
"no": "no",
11+
"yes": "yes"
12+
}
13+
},
14+
"autoSuggestions": false,
15+
"customValues": false
16+
}

data/fields/crossing/bell.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"key": "crossing:bell",
3+
"type": "check",
4+
"label": "Bell"
5+
}

data/fields/crossing/light.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"key": "crossing:light",
3+
"type": "check",
4+
"label": "Lights"
5+
}

data/presets/railway/crossing.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"icon": "temaki-pedestrian",
3+
"fields": [
4+
"crossing/barrier",
5+
"crossing/bell",
6+
"crossing/light"
7+
],
38
"geometry": [
49
"vertex"
510
],

data/presets/railway/level_crossing.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"icon": "maki-cross",
3+
"fields": [
4+
"crossing/barrier",
5+
"crossing/bell",
6+
"crossing/light"
7+
],
38
"geometry": [
49
"vertex"
510
],

interim/source_strings.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,29 @@ en:
597597
crossing:
598598
# crossing=*
599599
label: Type
600+
crossing/barrier:
601+
# 'crossing:barrier=*'
602+
label: Barrier Arm
603+
options:
604+
# 'crossing:barrier=double_half'
605+
double_half: Double Half
606+
# 'crossing:barrier=full'
607+
full: Full
608+
# 'crossing:barrier=half'
609+
half: Half
610+
# 'crossing:barrier=no'
611+
'no': 'no'
612+
# 'crossing:barrier=yes'
613+
'yes': 'yes'
614+
crossing/bell:
615+
# 'crossing:bell=*'
616+
label: Bell
600617
crossing/island:
601618
# 'crossing:island=*'
602619
label: Refuge Island
620+
crossing/light:
621+
# 'crossing:light=*'
622+
label: Lights
603623
cuisine:
604624
# cuisine=*
605625
label: Cuisines

0 commit comments

Comments
 (0)