diff --git a/data/presets.yaml b/data/presets.yaml index d67b42987..f37037f5c 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -269,6 +269,9 @@ en: currency_multi: # 'currency:=*' label: Currency Types + cycle_network: + # cycle_network=* + label: Network cycleway: # 'cycleway:left=*, cycleway:right=*' label: Bike Lanes @@ -628,6 +631,34 @@ en: network: # network=* label: Network + network_bicycle: + # network=* + label: Network Type + options: + # network=icn + icn: International + # network=lcn + lcn: Local + # network=ncn + ncn: National + # network=rcn + rcn: Regional + # network_bicycle field placeholder + placeholder: 'Local, Regional, National, International' + network_foot: + # network=* + label: Network Type + options: + # network=iwn + iwn: International + # network=lwn + lwn: Local + # network=nwn + nwn: National + # network=rwn + rwn: Regional + # network_foot field placeholder + placeholder: 'Local, Regional, National, International' note: # note=* label: Note diff --git a/data/presets/fields.json b/data/presets/fields.json index 0e3ef972f..b9fae7e80 100644 --- a/data/presets/fields.json +++ b/data/presets/fields.json @@ -352,6 +352,11 @@ "type": "multiCombo", "label": "Currency Types" }, + "cycle_network": { + "key": "cycle_network", + "type": "combo", + "label": "Network" + }, "cycleway": { "keys": [ "cycleway:left", @@ -841,6 +846,34 @@ "type": "typeCombo", "label": "Natural" }, + "network_bicycle": { + "key": "network", + "type": "combo", + "label": "Network Type", + "placeholder": "Local, Regional, National, International", + "strings": { + "options": { + "lcn": "Local", + "rcn": "Regional", + "ncn": "National", + "icn": "International" + } + } + }, + "network_foot": { + "key": "network", + "type": "combo", + "label": "Network Type", + "placeholder": "Local, Regional, National, International", + "strings": { + "options": { + "lwn": "Local", + "rwn": "Regional", + "nwn": "National", + "iwn": "International" + } + } + }, "network": { "key": "network", "type": "text", diff --git a/data/presets/fields/cycle_network.json b/data/presets/fields/cycle_network.json new file mode 100644 index 000000000..5565a5dae --- /dev/null +++ b/data/presets/fields/cycle_network.json @@ -0,0 +1,5 @@ +{ + "key": "cycle_network", + "type": "combo", + "label": "Network" +} \ No newline at end of file diff --git a/data/presets/fields/network_bicycle.json b/data/presets/fields/network_bicycle.json new file mode 100644 index 000000000..79125bc0c --- /dev/null +++ b/data/presets/fields/network_bicycle.json @@ -0,0 +1,14 @@ +{ + "key": "network", + "type": "combo", + "label": "Network Type", + "placeholder": "Local, Regional, National, International", + "strings": { + "options": { + "lcn": "Local", + "rcn": "Regional", + "ncn": "National", + "icn": "International" + } + } +} \ No newline at end of file diff --git a/data/presets/fields/network_foot.json b/data/presets/fields/network_foot.json new file mode 100644 index 000000000..ec0131060 --- /dev/null +++ b/data/presets/fields/network_foot.json @@ -0,0 +1,14 @@ +{ + "key": "network", + "type": "combo", + "label": "Network Type", + "placeholder": "Local, Regional, National, International", + "strings": { + "options": { + "lwn": "Local", + "rwn": "Regional", + "nwn": "National", + "iwn": "International" + } + } +} \ No newline at end of file diff --git a/data/presets/presets.json b/data/presets/presets.json index 975a31f4e..c662edfb4 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -10650,7 +10650,8 @@ "icon": "route-bicycle", "fields": [ "ref", - "network" + "network_bicycle", + "cycle_network" ] }, "type/route/bus": { @@ -10712,7 +10713,7 @@ "fields": [ "ref", "operator", - "network" + "network_foot" ] }, "type/route/hiking": { @@ -10728,7 +10729,7 @@ "fields": [ "ref", "operator", - "network" + "network_foot" ] }, "type/route/horse": { diff --git a/data/presets/presets/type/route/bicycle.json b/data/presets/presets/type/route/bicycle.json index a2ae9aabb..7e7ef6c5f 100644 --- a/data/presets/presets/type/route/bicycle.json +++ b/data/presets/presets/type/route/bicycle.json @@ -10,6 +10,7 @@ "icon": "route-bicycle", "fields": [ "ref", - "network" + "network_bicycle", + "cycle_network" ] } \ No newline at end of file diff --git a/data/presets/presets/type/route/foot.json b/data/presets/presets/type/route/foot.json index 7e989db5a..54af190f2 100644 --- a/data/presets/presets/type/route/foot.json +++ b/data/presets/presets/type/route/foot.json @@ -11,6 +11,6 @@ "fields": [ "ref", "operator", - "network" + "network_foot" ] } \ No newline at end of file diff --git a/data/presets/presets/type/route/hiking.json b/data/presets/presets/type/route/hiking.json index c1d610763..bb8f4e926 100644 --- a/data/presets/presets/type/route/hiking.json +++ b/data/presets/presets/type/route/hiking.json @@ -11,6 +11,6 @@ "fields": [ "ref", "operator", - "network" + "network_foot" ] } diff --git a/dist/locales/en.json b/dist/locales/en.json index 61e49ff91..f5eec573d 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -864,6 +864,9 @@ "currency_multi": { "label": "Currency Types" }, + "cycle_network": { + "label": "Network" + }, "cycleway": { "label": "Bike Lanes", "placeholder": "none", @@ -1168,6 +1171,26 @@ "natural": { "label": "Natural" }, + "network_bicycle": { + "label": "Network Type", + "placeholder": "Local, Regional, National, International", + "options": { + "lcn": "Local", + "rcn": "Regional", + "ncn": "National", + "icn": "International" + } + }, + "network_foot": { + "label": "Network Type", + "placeholder": "Local, Regional, National, International", + "options": { + "lwn": "Local", + "rwn": "Regional", + "nwn": "National", + "iwn": "International" + } + }, "network": { "label": "Network" },