diff --git a/communication.json b/communication.json
index dbdb6621..83a90d31 100644
--- a/communication.json
+++ b/communication.json
@@ -25,14 +25,14 @@
"node[amenity~'^(post_office|internet_cafe)$'];",
"way[amenity~'^(post_office|internet_cafe)$'];",
"relation[amenity~'^(post_office|internet_cafe)$'];",
- "nwr[office~\"^(telecommunication|it)$\"];",
+ "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)$'];",
- "nwr[office~\"^(telecommunication|it)$\"];",
+ "nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];",
");"
]
},
@@ -95,13 +95,37 @@
"zoom": 13
},
"office=telecommunication": {
- "sign": "",
+ "sign": "",
"zoom": 13
},
"office=it": {
"sign": "",
"zoom": 13
},
+ "office=newspaper": {
+ "sign": "",
+ "zoom": 13
+ },
+ "office=publisher": {
+ "sign": "",
+ "zoom": 13
+ },
+ "office=advertising_agency": {
+ "sign": "",
+ "zoom": 13
+ },
+ "office=public_relations": {
+ "sign": "",
+ "zoom": 13
+ },
+ "office=audiovisual_production": {
+ "sign": "",
+ "zoom": 13
+ },
+ "office=film_production": {
+ "sign": "",
+ "zoom": 13
+ },
"amenity=telephone": {
"sign": "",
"zoom": 16
diff --git a/financial.json b/financial.json
index b0ea37a4..82b3bfbd 100644
--- a/financial.json
+++ b/financial.json
@@ -31,37 +31,75 @@
"node[amenity~\"^(bank|bureau_de_change|atm)$\"];",
"way[amenity~\"^(bank|bureau_de_change|atm)$\"];",
"relation[amenity~\"^(bank|bureau_de_change|atm)$\"];",
+ "node[office~\"^(financial|accountant|insurance|tax|tax_advisor)$\"];",
+ "way[office~\"^(financial|accountant|insurance|tax|tax_advisor)$\"];",
+ "relation[office~\"^(financial|accountant|insurance|tax|tax_advisor)$\"];",
")"
]
},
"feature": {
- "description": "{{ tagTrans('amenity', tags.amenity) }}",
- "markerSign": "{{ const[tags.amenity].sign|raw }}"
+ "pre": [
+ "{% if tags.amenity %}",
+ " {% set key = 'amenity' %}",
+ " {% set value = tags.amenity %}",
+ "{% else %}",
+ " {% set key = 'office' %}",
+ " {% set value = tags.office %}",
+ "{% endif %}"
+ ],
+ "description": "{{ tagTrans(key, value) }}",
+ "markerSign": "{{ const[key ~ '=' ~ value].sign|raw }}"
},
"info": [
"
",
- "{% for value, data in const %}",
+ "{% for kv, data in const %}",
"{% if data.zoom <= map.zoom %}",
" ",
" {{ markerCircle({})|raw }} {{ data.sign|raw }} | ",
- " {{ tagTrans('amenity', value) }} | ",
+ " ",
+ " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
+ " | ",
"
",
"{% endif %}",
"{% endfor %}",
"
"
],
"const": {
- "atm": {
- "sign": "",
+ "amenity=atm": {
+ "sign": "",
"zoom": 15
},
- "bank": {
- "sign": "",
+ "amenity=bank": {
+ "sign": "",
"zoom": 14
},
- "bureau_de_change": {
+ "amenity=bureau_de_change": {
"sign": "â",
"zoom": 15
+ },
+ "office=financial": {
+ "sign": "",
+ "zoom": 15
+ },
+ "office=accountant": {
+ "sign": "",
+ "zoom": 15
+ },
+ "office=insurance": {
+ "sign": "",
+ "zoom": 15
+ },
+ "office=tax": {
+ "sign": "%",
+ "zoom": 15
+ },
+ "office=tax_advisor": {
+ "sign": "%",
+ "zoom": 15
+ },
+ "office=cooperative": {
+ "sign": "",
+ "zoom": 15
}
}
}
diff --git a/index.json b/index.json
index b2f33648..cff222f2 100644
--- a/index.json
+++ b/index.json
@@ -95,6 +95,9 @@
{
"id": "financial"
},
+ {
+ "id": "law"
+ },
{
"id": "public"
},
diff --git a/law.json b/law.json
new file mode 100644
index 00000000..02beff11
--- /dev/null
+++ b/law.json
@@ -0,0 +1,59 @@
+{
+ "type": "overpass",
+ "name": {
+ "en": "Law"
+ },
+ "query": {
+ "14": [
+ "(",
+ "node[amenity~\"^(courthouse)$\"];",
+ "way[amenity~\"^(courthouse)$\"];",
+ "relation[amenity~\"^(courthouse)$\"];",
+ "node[office~\"^(lawyer|notary)$\"];",
+ "way[office~\"^(lawyer|notary)$\"];",
+ "relation[office~\"^(lawyer|notary)$\"];",
+ ")"
+ ]
+ },
+ "feature": {
+ "pre": [
+ "{% if tags.amenity %}",
+ " {% set key = 'amenity' %}",
+ " {% set value = tags.amenity %}",
+ "{% else %}",
+ " {% set key = 'office' %}",
+ " {% set value = tags.office %}",
+ "{% endif %}"
+ ],
+ "description": "{{ tagTrans(key, value) }}",
+ "markerSign": "{{ const[key ~ '=' ~ value].sign|raw }}"
+ },
+ "info": [
+ "",
+ "{% for kv, data in const %}",
+ "{% if data.zoom <= map.zoom %}",
+ " ",
+ " {{ markerCircle({})|raw }} {{ data.sign|raw }} | ",
+ " ",
+ " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
+ " | ",
+ "
",
+ "{% endif %}",
+ "{% endfor %}",
+ "
"
+ ],
+ "const": {
+ "amenity=courthouse": {
+ "sign": "",
+ "zoom": 14
+ },
+ "office=lawyer": {
+ "sign": "â",
+ "zoom": 14
+ },
+ "office=notary": {
+ "sign": "",
+ "zoom": 14
+ }
+ }
+}
diff --git a/organisations.json b/organisations.json
index dcc1aa4b..a6652b31 100644
--- a/organisations.json
+++ b/organisations.json
@@ -66,6 +66,11 @@
"sign": "",
"zoom": 13
},
+ "office=foundation": {
+ "priority": 0,
+ "sign": "",
+ "zoom": 13
+ },
"office=charity": {
"priority": 0,
"sign": "",
diff --git a/public.json b/public.json
index 63061c05..956e60a6 100644
--- a/public.json
+++ b/public.json
@@ -21,9 +21,9 @@
"query": {
"12": [
"(",
- "node[amenity~'^(courthouse|embassy|public_building|townhall)$'];",
- "way[amenity~'^(courthouse|embassy|public_building|townhall)$'];",
- "relation[amenity~'^(courthouse|embassy|public_building|townhall)$'];",
+ "node[amenity~'^(embassy|public_building|townhall)$'];",
+ "way[amenity~'^(embassy|public_building|townhall)$'];",
+ "relation[amenity~'^(embassy|public_building|townhall)$'];",
"node[amenity=recycling][recyling_type=centre];",
"way[amenity=recycling][recyling_type=centre];",
"relation[amenity=recycling][recyling_type=centre];",
@@ -32,9 +32,9 @@
],
"16": [
"(",
- "node[amenity~'^(courthouse|embassy|public_building|townhall|clock|drinking_water|recycling|toilets)$'];",
- "way[amenity~'^(courthouse|embassy|public_building|townhall|recycling|toilets)$'];",
- "relation[amenity~'^(courthouse|embassy|public_building|townhall|recycling|toilets)$'];",
+ "node[amenity~'^(embassy|public_building|townhall|clock|drinking_water|recycling|toilets)$'];",
+ "way[amenity~'^(embassy|public_building|townhall|recycling|toilets)$'];",
+ "relation[amenity~'^(embassy|public_building|townhall|recycling|toilets)$'];",
"node[drinking_water];",
"nwr[office~\"^(government|administration)$\"];",
");"
@@ -80,7 +80,6 @@
""
],
"const": {
- "amenity=courthouse": "â",
"amenity=clock": "",
"amenity=drinking_water": "",
"amenity=embassy": "",
diff --git a/tourism_services.json b/tourism_services.json
index 721916ed..d6e5ad23 100644
--- a/tourism_services.json
+++ b/tourism_services.json
@@ -25,6 +25,7 @@
"node[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"];",
"way[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"];",
"relation[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|motel|wilderness_hut)$\"];",
+ "nwr[office~\"^(guide|tourism|tourist_accommodation)$\"];",
")"
],
"16": [
@@ -32,67 +33,107 @@
"node[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];",
"way[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];",
"relation[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];",
+ "nwr[office~\"^(guide|tourism|tourist_accommodation)$\"];",
")"
]
},
"feature": {
- "description": "{{ tagTrans('tourism', tags.tourism) }}",
- "markerSign": "{{ const[tags.tourism].sign|raw }}"
+ "pre": [
+ "{% if tags.tourism %}",
+ " {% set key = 'tourism' %}",
+ " {% set value = tags.tourism %}",
+ "{% else %}",
+ " {% set key = 'office' %}",
+ " {% set value = tags.office %}",
+ "{% endif %}"
+ ],
+ "description": [
+ "{% if key == 'office' %}",
+ " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",
+ "{% else %}",
+ " {{ tagTrans(key, value) }}",
+ "{% endif %}"
+ ],
+ "markerSign": [
+ "{% set data = const[key ~ '=' ~ value] %}",
+ "{% if data %}",
+ "{{ data.sign|raw }}",
+ "{% endif %}"
+ ]
},
"info": [
"",
- "{% for value, data in const %}",
+ "{% for kv, data in const %}",
"{% if data.zoom <= map.zoom %}",
" ",
" {{ markerCircle({})|raw }} {{ data.sign|raw }} | ",
- " {{ tagTrans('tourism', value) }} | ",
+ " ",
+ " {% if kv|split('=')[0] == 'office' %}",
+ " {{ keyTrans('office') }}",
+ " ({{ tagTrans('office', kv|split('=')[1]) }})",
+ " {% else %}",
+ " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
+ " {% endif %}",
+ " | ",
"
",
"{% endif %}",
"{% endfor %}",
"
"
],
"const": {
- "alpine_hut": {
+ "tourism=alpine_hut": {
"sign": "đ",
"zoom": 13
},
- "apartment": {
+ "tourism=apartment": {
"sign": "đ",
"zoom": 13
},
- "camp_site": {
+ "tourism=camp_site": {
"sign": "âē",
"zoom": 13
},
- "caravan_site": {
+ "tourism=caravan_site": {
"sign": "âē",
"zoom": 13
},
- "chalet": {
+ "tourism=chalet": {
"sign": "đ",
"zoom": 13
},
- "guest_house": {
+ "tourism=guest_house": {
"sign": "đ",
"zoom": 13
},
- "hostel": {
+ "tourism=hostel": {
"sign": "đ",
"zoom": 13
},
- "hotel": {
+ "tourism=hotel": {
"sign": "đ",
"zoom": 13
},
- "motel": {
+ "tourism=motel": {
"sign": "đ",
"zoom": 13
},
- "wilderness_hut": {
+ "tourism=wilderness_hut": {
"sign": "",
"zoom": 13
},
- "information": {
+ "office=tourism": {
+ "sign": "",
+ "zoom": 13
+ },
+ "office=guide": {
+ "sign": "",
+ "zoom": 13
+ },
+ "office=tourist_accommodation": {
+ "sign": "đ",
+ "zoom": 13
+ },
+ "tourism=information": {
"sign": "âšī¸",
"zoom": 16
}