Skip to content

Commit

Permalink
Add service field for railways (closes #2552)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel committed Mar 12, 2015
1 parent 05ff86e commit 50a3fe3
Show file tree
Hide file tree
Showing 13 changed files with 82 additions and 24 deletions.
7 changes: 7 additions & 0 deletions data/presets.yaml
Expand Up @@ -479,6 +479,13 @@ en:
undefined: Assumed to be No
"yes": "Yes"
"no": "No"
service_rail:
label: Service Type
options:
spur: Spur
yard: Yard
siding: Siding
crossover: Crossover
shelter:
label: Shelter
shelter_type:
Expand Down
13 changes: 13 additions & 0 deletions data/presets/fields.json
Expand Up @@ -977,6 +977,19 @@
}
}
},
"service_rail": {
"key": "service",
"type": "combo",
"label": "Service Type",
"strings": {
"options": {
"spur": "Spur",
"yard": "Yard",
"siding": "Siding",
"crossover": "Crossover"
}
}
},
"shelter": {
"key": "shelter",
"type": "check",
Expand Down
13 changes: 13 additions & 0 deletions data/presets/fields/service_rail.json
@@ -0,0 +1,13 @@
{
"key": "service",
"type": "combo",
"label": "Service Type",
"strings": {
"options": {
"spur": "Spur",
"yard": "Yard",
"siding": "Siding",
"crossover": "Crossover"
}
}
}
32 changes: 20 additions & 12 deletions data/presets/presets.json
Expand Up @@ -6591,7 +6591,8 @@
"railway": "abandoned"
},
"fields": [
"structure"
"structure",
"service_rail"
],
"terms": [],
"name": "Abandoned Railway"
Expand All @@ -6605,7 +6606,8 @@
"railway": "disused"
},
"fields": [
"structure"
"structure",
"service_rail"
],
"terms": [],
"name": "Disused Railway"
Expand All @@ -6623,7 +6625,8 @@
],
"fields": [
"structure",
"gauge"
"gauge",
"service_rail"
],
"tags": {
"railway": "funicular"
Expand Down Expand Up @@ -6677,7 +6680,8 @@
},
"fields": [
"structure",
"electrified"
"electrified",
"service_rail"
],
"terms": [],
"name": "Monorail"
Expand All @@ -6693,7 +6697,8 @@
"fields": [
"structure",
"gauge",
"electrified"
"electrified",
"service_rail"
],
"terms": [
"narrow gauge railway",
Expand Down Expand Up @@ -6724,7 +6729,8 @@
"fields": [
"structure",
"gauge",
"electrified"
"electrified",
"service_rail"
],
"terms": [],
"name": "Rail"
Expand Down Expand Up @@ -6753,17 +6759,18 @@
},
"railway/subway": {
"icon": "railway-subway",
"fields": [
"structure",
"gauge",
"electrified"
],
"geometry": [
"line"
],
"tags": {
"railway": "subway"
},
"fields": [
"structure",
"gauge",
"electrified",
"service_rail"
],
"terms": [],
"name": "Subway"
},
Expand All @@ -6789,7 +6796,8 @@
"fields": [
"structure",
"gauge",
"electrified"
"electrified",
"service_rail"
],
"terms": [
"streetcar"
Expand Down
3 changes: 2 additions & 1 deletion data/presets/presets/railway/abandoned.json
Expand Up @@ -7,7 +7,8 @@
"railway": "abandoned"
},
"fields": [
"structure"
"structure",
"service_rail"
],
"terms": [],
"name": "Abandoned Railway"
Expand Down
3 changes: 2 additions & 1 deletion data/presets/presets/railway/disused.json
Expand Up @@ -7,7 +7,8 @@
"railway": "disused"
},
"fields": [
"structure"
"structure",
"service_rail"
],
"terms": [],
"name": "Disused Railway"
Expand Down
3 changes: 2 additions & 1 deletion data/presets/presets/railway/funicular.json
Expand Up @@ -11,7 +11,8 @@
],
"fields": [
"structure",
"gauge"
"gauge",
"service_rail"
],
"tags": {
"railway": "funicular"
Expand Down
3 changes: 2 additions & 1 deletion data/presets/presets/railway/monorail.json
Expand Up @@ -8,7 +8,8 @@
},
"fields": [
"structure",
"electrified"
"electrified",
"service_rail"
],
"terms": [],
"name": "Monorail"
Expand Down
3 changes: 2 additions & 1 deletion data/presets/presets/railway/narrow_gauge.json
Expand Up @@ -9,7 +9,8 @@
"fields": [
"structure",
"gauge",
"electrified"
"electrified",
"service_rail"
],
"terms": [
"narrow gauge railway",
Expand Down
3 changes: 2 additions & 1 deletion data/presets/presets/railway/rail.json
Expand Up @@ -9,7 +9,8 @@
"fields": [
"structure",
"gauge",
"electrified"
"electrified",
"service_rail"
],
"terms": [],
"name": "Rail"
Expand Down
11 changes: 6 additions & 5 deletions data/presets/presets/railway/subway.json
@@ -1,16 +1,17 @@
{
"icon": "railway-subway",
"fields": [
"structure",
"gauge",
"electrified"
],
"geometry": [
"line"
],
"tags": {
"railway": "subway"
},
"fields": [
"structure",
"gauge",
"electrified",
"service_rail"
],
"terms": [],
"name": "Subway"
}
3 changes: 2 additions & 1 deletion data/presets/presets/railway/tram.json
Expand Up @@ -9,7 +9,8 @@
"fields": [
"structure",
"gauge",
"electrified"
"electrified",
"service_rail"
],
"terms": ["streetcar"],
"name": "Tram"
Expand Down
9 changes: 9 additions & 0 deletions dist/locales/en.json
Expand Up @@ -1183,6 +1183,15 @@
"no": "No"
}
},
"service_rail": {
"label": "Service Type",
"options": {
"spur": "Spur",
"yard": "Yard",
"siding": "Siding",
"crossover": "Crossover"
}
},
"shelter": {
"label": "Shelter"
},
Expand Down

0 comments on commit 50a3fe3

Please sign in to comment.