From 097273cc8c4e9f19d5c10141454efec24bd9c3e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Fri, 6 Aug 2021 21:58:34 -0700 Subject: [PATCH] Added cardinal direction field to some route presets --- data/fields/direction_cardinal.json | 14 ++++++++++++++ data/presets/type/route/bicycle.json | 1 + data/presets/type/route/road.json | 1 + data/presets/type/route/train.json | 1 + interim/source_strings.yaml | 12 ++++++++++++ 5 files changed, 29 insertions(+) create mode 100644 data/fields/direction_cardinal.json diff --git a/data/fields/direction_cardinal.json b/data/fields/direction_cardinal.json new file mode 100644 index 00000000..bcb81250 --- /dev/null +++ b/data/fields/direction_cardinal.json @@ -0,0 +1,14 @@ +{ + "key": "direction", + "type": "combo", + "label": "Direction", + "strings": { + "options": { + "north": "Northbound", + "south": "Southbound", + "east": "Eastbound", + "west": "Westbound" + } + }, + "autoSuggestions" : false +} diff --git a/data/presets/type/route/bicycle.json b/data/presets/type/route/bicycle.json index d6d822ae..64fdd7bf 100644 --- a/data/presets/type/route/bicycle.json +++ b/data/presets/type/route/bicycle.json @@ -6,6 +6,7 @@ "network_bicycle", "cycle_network", "network/type", + "direction_cardinal", "from", "to", "via" diff --git a/data/presets/type/route/road.json b/data/presets/type/route/road.json index 7f62aa42..346abfc6 100644 --- a/data/presets/type/route/road.json +++ b/data/presets/type/route/road.json @@ -4,6 +4,7 @@ "name", "ref_route", "network_road", + "direction_cardinal", "from", "to", "via" diff --git a/data/presets/type/route/train.json b/data/presets/type/route/train.json index cb37ada1..4effa0eb 100644 --- a/data/presets/type/route/train.json +++ b/data/presets/type/route/train.json @@ -5,6 +5,7 @@ "ref_route", "operator", "network", + "direction_cardinal", "from", "to", "via" diff --git a/interim/source_strings.yaml b/interim/source_strings.yaml index 7820faac..bbcbd4ea 100644 --- a/interim/source_strings.yaml +++ b/interim/source_strings.yaml @@ -857,6 +857,18 @@ en: # direction field placeholder placeholder: '45, 90, 180, 270' terms: '[translate with synonyms or related terms for ''Direction (Degrees Clockwise)'', separated by commas]' + direction_cardinal: + # direction=* + label: Direction + options: + # direction=east + east: Eastbound + # direction=north + north: Northbound + # direction=south + south: Southbound + # direction=west + west: Westbound direction_clock: # direction=* label: Direction