Browse Source

communication: include amenity=parcel_locker (and older variants)

pedestrian
parent
commit
a5bb40231b
  1. 36
      communication.json

36
communication.json

@ -22,23 +22,25 @@
"query": { "query": {
"13": [ "13": [
"(", "(",
"node[amenity~'^(post_office|internet_cafe)$'];",
"way[amenity~'^(post_office|internet_cafe)$'];",
"relation[amenity~'^(post_office|internet_cafe)$'];",
"nwr[amenity~'^(post_office|internet_cafe)$'];",
"nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];", "nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];",
");" ");"
], ],
"16": [
"(node[amenity~'^(post_office|internet_cafe|post_box|telephone)$'];",
"way[amenity~'^(post_office|internet_cafe)$'];",
"relation[amenity~'^(post_office|internet_cafe)$'];",
"15": [
"(",
"nwr[amenity~'^(post_office|internet_cafe|post_box|parcel_locker|telephone)$'];",
"nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];", "nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];",
"nwr[vending~\"^(|.*;)parcel_pickup(;.*|)$\"];",
"nwr[vending~\"^(|.*;)parcel_mail_in(;.*|)$\"];",
");" ");"
] ]
}, },
"feature": { "feature": {
"pre": [ "pre": [
"{% if tags.amenity %}",
"{% if tags.vending %}",
" {% set key = 'amenity' %}",
" {% set value = 'parcel_locker' %}",
"{% elseif tags.amenity %}",
" {% set key = 'amenity' %}", " {% set key = 'amenity' %}",
" {% set value = tags.amenity %}", " {% set value = tags.amenity %}",
"{% else %}", "{% else %}",
@ -50,7 +52,7 @@
"{% if key == 'office' %}", "{% if key == 'office' %}",
" {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})", " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",
"{% else %}", "{% else %}",
" {{ tagTrans(key, value) }}",
" {{ tagTransList(key, value) }}",
"{% endif %}" "{% endif %}"
], ],
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}", "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}",
@ -64,7 +66,7 @@
"info": [ "info": [
"<table>", "<table>",
"{% for kv, data in const %}", "{% for kv, data in const %}",
"{% if data.zoom <= map.zoom %}",
"{% if data.zoom <= map.zoom and not data.info_hide %}",
" <tr>", " <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
" <td>", " <td>",
@ -93,6 +95,20 @@
"sign": "<i class='fa fa-laptop' aria-hidden='true'></i>", "sign": "<i class='fa fa-laptop' aria-hidden='true'></i>",
"zoom": 13 "zoom": 13
}, },
"amenity=parcel_locker": {
"sign": "<i class='fas fa-box'></i>",
"zoom": 16
},
"vending=parcel_pickup": {
"sign": "<i class='fas fa-box'></i>",
"info_hide": true,
"zoom": 16
},
"vending=parcel_mail_in": {
"sign": "<i class='fas fa-box'></i>",
"info_hide": true,
"zoom": 16
},
"office=telecommunication": { "office=telecommunication": {
"sign": "<i class='fas fa-mobile-alt'></i>", "sign": "<i class='fas fa-mobile-alt'></i>",
"zoom": 13 "zoom": 13

Loading…
Cancel
Save