diff --git a/education.json b/education.json
index c366e82f..5b4772da 100644
--- a/education.json
+++ b/education.json
@@ -32,6 +32,7 @@
"node[amenity~'^(college|university|library|school|kindergarten|language_school)$'];",
"way[amenity~'^(college|university|library|school|kindergarten|language_school)$'];",
"relation[amenity~'^(college|university|library|school|kindergarten|language_school)$'];",
+ "nwr[office~\"^(educational_institution|research)$\"];",
")"
],
"16": [
@@ -39,20 +40,30 @@
"node[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];",
"way[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];",
"relation[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];",
+ "nwr[office~\"^(educational_institution|research)$\"];",
")"
]
},
"feature": {
- "description": "{{ tagTrans('amenity', tags.amenity) }}",
+ "pre": [
+ "{% if tags.office == 'educational_institution' or tags.office == 'research' %}",
+ " {% set key = 'office' %}",
+ " {% set value = tags.office %}",
+ "{% else %}",
+ " {% set key = 'amenity' %}",
+ " {% set value = tags.amenity %}",
+ "{% endif %}"
+ ],
+ "description": "{{ tagTrans(key, value) }}",
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}
{% endif %}",
"markerSign": [
- "{% set data = const[tags.amenity] %}",
+ "{% set data = const[key ~ '=' ~ value] %}",
"{% if data %}",
- "{{ data.sign }}",
+ "{{ data.sign|raw }}",
"{% endif %}"
],
"priority": [
- "{% set data = const[tags.amenity] %}",
+ "{% set data = const[key ~ '=' ~ value] %}",
"{% if data %}",
"{{ data.priority }}",
"{% endif %}"
@@ -60,51 +71,63 @@
},
"info": [
"
{{ markerCircle({})|raw }} {{ data.sign }} | ",
- " {{ tagTrans('amenity', value) }} | ", + "{{ markerCircle({})|raw }} {{ data.sign|raw }} | ",
+ " ", + " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}", + " | ", "