From dc2277fe1675df3e273816285888d337ee8f242a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 25 Jun 2017 07:03:33 +0200 Subject: [PATCH] Category Places: sort items by priority --- places.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/places.json b/places.json index b921c99..9a72ae9 100644 --- a/places.json +++ b/places.json @@ -14,6 +14,7 @@ "feature": { "title": "{% set loc_name = localizedTag(tags, 'name') %}{{ loc_name }}{% if loc_name != tags.name %} ({{ tags.name }}){% endif %}", "body": "{{ tagTrans('place', tags.place) }}\n{% if tags.population %}
{{ tagTrans('population') }}: {{ tags.population }}{% endif %} \n", - "description": "{{ tagTrans('place', tags.place) }}" + "description": "{{ tagTrans('place', tags.place) }}", + "priority": "{% set priorities = { 'continent': 0, 'country': 1, 'state': 2, 'region': 3, 'city': 4, 'town': 5, 'village': 6, 'suburb': 7, 'hamlet': 8, 'quarter': 9, neighbourhood: 10, 'isolated_dwelling': 11, 'farm': 12 } %}{{ priorities[tags.place] }}" } }