From c3094355d7ea7eb51a4a9d698be68fc0b84563bd Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 15 Apr 2021 12:27:28 +0100 Subject: [PATCH] More detail --- templates/random.html | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/templates/random.html b/templates/random.html index 6b8f307..b372a5c 100644 --- a/templates/random.html +++ b/templates/random.html @@ -6,20 +6,33 @@ -

Geocode UK coordinates to Commons Category

- -

Random

+

Geocode coordinates to Commons Category

visit endpoint -| view in OSM

+| 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 element in elements %} -
{{ element | pprint }}
+{% set tags = element.tags %} +
{{ element | pprint }}
{% endfor %}