@ -10,30 +10,20 @@
"query" : {
"query" : {
"13" : [
"13" : [
"(" ,
"(" ,
"node[amenity~\"^(bicycle_rental)$\"];" ,
"way[amenity~\"^(bicycle_rental)$\"];" ,
"relation[amenity~\"^(bicycle_rental)$\"];" ,
"nwr[amenity~\"^(bicycle_rental)$\"];" ,
"node[amenity~\"^(charging_station)$\"][bicycle][bicycle!=\"no\"];" ,
"node[amenity~\"^(charging_station)$\"][bicycle][bicycle!=\"no\"];" ,
"node[shop~\"^(bicycle)$\"];" ,
"way[shop~\"^(bicycle)$\"];" ,
"relation[shop~\"^(bicycle)$\"];" ,
"nwr[shop~\"^(bicycle)$\"];" ,
"nwr[rental~\"^(.*;|)bicycle(|;.*)$\"];" ,
")"
")"
] ,
] ,
"16" : [
"16" : [
"(" ,
"(" ,
"node[amenity~\"^(bicycle_.*|compressed_air)$\"];" ,
"way[amenity~\"^(bicycle_.*|compressed_air)$\"];" ,
"relation[amenity~\"^(bicycle_.*|compressed_air)$\"];" ,
"nwr[amenity~\"^(bicycle_.*|compressed_air)$\"];" ,
"node[amenity~\"^(charging_station)$\"][bicycle][bicycle!=\"no\"];" ,
"node[amenity~\"^(charging_station)$\"][bicycle][bicycle!=\"no\"];" ,
"node[shop~\"^(bicycle)$\"];" ,
"way[shop~\"^(bicycle)$\"];" ,
"relation[shop~\"^(bicycle)$\"];" ,
"node[\"monitoring:bicycle\"];" ,
"way[\"monitoring:bicycle\"];" ,
"relation[\"monitoring:bicycle\"];" ,
"node[vending~\"^(bicycle_tube)$\"];" ,
"way[vending~\"^(bicycle_tube)$\"];" ,
"relation[vending~\"^(bicycle_tube)$\"];" ,
"nwr[shop~\"^(bicycle)$\"];" ,
"nwr[\"monitoring:bicycle\"];" ,
"nwr[vending~\"^(bicycle_tube)$\"];" ,
"nwr[rental~\"^(.*;|)bicycle(|;.*)$\"];" ,
")"
")"
]
]
} ,
} ,
@ -48,6 +38,9 @@
"{% elseif tags.vending in [ 'bicycle_tube' ] %}" ,
"{% elseif tags.vending in [ 'bicycle_tube' ] %}" ,
" {% set key = 'vending' %}" ,
" {% set key = 'vending' %}" ,
" {% set value = tags.vending %}" ,
" {% set value = tags.vending %}" ,
"{% elseif 'bicycle' in tags.rental|split(';') %}" ,
" {% set key = 'amenity' %}" ,
" {% set value = 'bicycle_rental' %}" ,
"{% else %}" ,
"{% else %}" ,
" {% set key = 'amenity' %}" ,
" {% set key = 'amenity' %}" ,
" {% set value = tags.amenity %}" ,
" {% set value = tags.amenity %}" ,
@ -118,6 +111,7 @@
} ,
} ,
"amenity=bicycle_rental" : {
"amenity=bicycle_rental" : {
"sign" : "R" ,
"sign" : "R" ,
"filter_query" : "(nwr[amenity=bicycle_rental];nwr[rental~\"^(.*;|)bicycle(|;.*)$\"];nwr['service:bicycle:rental']['service:bicycle:rental'!='no'];)" ,
"priority" : 1
"priority" : 1
} ,
} ,
"man_made=monitoring_station" : {
"man_made=monitoring_station" : {
@ -142,7 +136,7 @@
"name" : "{{ trans('filter:type') }}" ,
"name" : "{{ trans('filter:type') }}" ,
"show_default" : "true" ,
"show_default" : "true" ,
"type" : "select" ,
"type" : "select" ,
"values" : "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\">{{ tagTrans(k) }}</option>{% endfor %}"
"values" : "{% for k, v in const %}<option value=\"{{ k }}\" query=\"{{ v.filter_query ? v.filter_query : ' nwr[{{ k }}]' }} \">{{ tagTrans(k) }}</option>{% endfor %}"
}
}
}
}
}
}