Skip to content

Commit 93db02e

Browse files
committed
Added cardinal direction field to some route presets
1 parent 42d86ac commit 93db02e

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"key": "direction",
3+
"type": "combo",
4+
"label": "Direction",
5+
"strings": {
6+
"options": {
7+
"north": "Northbound",
8+
"south": "Southbound",
9+
"east": "Eastbound",
10+
"west": "Westbound"
11+
}
12+
},
13+
"autoSuggestions" : false
14+
}

data/presets/type/route/bicycle.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"network_bicycle",
77
"cycle_network",
88
"network/type",
9+
"direction_cardinal",
910
"from",
1011
"to",
1112
"via"

data/presets/type/route/road.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"name",
55
"ref_route",
66
"network_road",
7+
"direction_cardinal",
78
"from",
89
"to",
910
"via"

data/presets/type/route/train.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"ref_route",
66
"operator",
77
"network",
8+
"direction_cardinal",
89
"from",
910
"to",
1011
"via"

interim/source_strings.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,18 @@ en:
785785
# direction field placeholder
786786
placeholder: '45, 90, 180, 270'
787787
terms: '[translate with synonyms or related terms for ''Direction (Degrees Clockwise)'', separated by commas]'
788+
direction_cardinal:
789+
# direction=*
790+
label: Direction
791+
options:
792+
# direction=east
793+
east: Eastbound
794+
# direction=north
795+
north: Northbound
796+
# direction=south
797+
south: Southbound
798+
# direction=west
799+
west: Westbound
788800
direction_clock:
789801
# direction=*
790802
label: Direction

0 commit comments

Comments
 (0)