Browse Source

cycle_amenities: include rental=bicycle in query

master
parent
commit
28d81a2bcb
  1. 29
      cycle_amenities.json

29
cycle_amenities.json

@ -10,30 +10,20 @@
"query": {
"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[shop~\"^(bicycle)$\"];",
"way[shop~\"^(bicycle)$\"];",
"relation[shop~\"^(bicycle)$\"];",
"nwr[shop~\"^(bicycle)$\"];",
"nwr[rental~\"^(.*;|)bicycle(|;.*)$\"];",
")"
],
"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[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' ] %}",
" {% set key = 'vending' %}",
" {% set value = tags.vending %}",
"{% elseif 'bicycle' in tags.rental|split(';') %}",
" {% set key = 'amenity' %}",
" {% set value = 'bicycle_rental' %}",
"{% else %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",

Loading…
Cancel
Save