From 89549b750f059e37a8b4c9b94ec91cf01a72911f Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 18 May 2022 14:13:29 +0100 Subject: [PATCH] Add missing template --- templates/wikidata_tag.html | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 templates/wikidata_tag.html diff --git a/templates/wikidata_tag.html b/templates/wikidata_tag.html new file mode 100644 index 0000000..91aded6 --- /dev/null +++ b/templates/wikidata_tag.html @@ -0,0 +1,51 @@ + + + + + Geocode to commons + + + + +

Geocode coordinates to Commons Category

+ +

visit endpoint + +| view in OSM + +{% if result.commons_cat %} +| Commons category +{% endif %} + +{% if result.wikidata %} + | {{ result.wikidata }} +{% endif %} + +| # + +

+ +
{{ result | pprint }}
+ +{% if result.commons_cat %} +

({{ lat }}, {{ lon }}, {{result.commons_cat.title | pprint }}),

+{% endif %} + + +{% for e in elements %} +{% set tags = e.tags %} + + + + + + + + +{% endfor %} +
{{ tags.name }}{{ tags.admin_level }}{{ tags.boundary }}{{ tags.designation }}{{ '{:,.0f}'.format(e.area_in_sq_km) }} kmĀ²{{ 'wikidata' in tags }}
+ + +