Combo network type field for bike/hike routes

Replaced the generic network field (network) with a specialized network type field (network) in the bicycle, foot, and hiking route relation presets. Added a network (cycle_network) field to the bicycle route relation preset.
This commit is contained in:
Minh Nguyễn
2016-07-27 03:03:20 -07:00
parent 6bec0f2cf9
commit b36ed08138
10 changed files with 128 additions and 6 deletions
+31
View File
@@ -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
+33
View File
@@ -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",
+5
View File
@@ -0,0 +1,5 @@
{
"key": "cycle_network",
"type": "combo",
"label": "Network"
}
+14
View File
@@ -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"
}
}
}
+14
View File
@@ -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"
}
}
}
+4 -3
View File
@@ -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": {
+2 -1
View File
@@ -10,6 +10,7 @@
"icon": "route-bicycle",
"fields": [
"ref",
"network"
"network_bicycle",
"cycle_network"
]
}
+1 -1
View File
@@ -11,6 +11,6 @@
"fields": [
"ref",
"operator",
"network"
"network_foot"
]
}
+1 -1
View File
@@ -11,6 +11,6 @@
"fields": [
"ref",
"operator",
"network"
"network_foot"
]
}
+23
View File
@@ -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"
},