geocode/templates/detail.html

41 lines
905 B
HTML
Raw Normal View History

2019-08-18 15:56:53 +01:00
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Geocode to commons</title>
</head>
<body>
2021-04-15 12:27:28 +01:00
<h1>Geocode coordinates to Commons Category</h1>
2019-08-18 15:56:53 +01:00
<p><a href="{{ url_for('index', lat=lat, lon=lon) }}">visit endpoint</a>
2021-04-15 12:27:28 +01:00
| <a href="https://www.openstreetmap.org/#map=17/{{lat }}/{{ lon }}">view in OSM</a>
{% if result.commons_cat %}
| <a href="{{ result.commons_cat.url }}">Commons category</a>
{% endif %}
{% if result.wikidata %}
| <a href="https://www.wikidata.org/wiki/{{ result.wikidata }}">{{ result.wikidata }}</a>
{% endif %}
| <a href="{{ url_for('detail_page', lat=lat, lon=lon) }}">#</a>
</p>
2019-08-18 15:56:53 +01:00
<pre>{{ result | pprint }}</pre>
2021-04-15 12:27:28 +01:00
{% if result.commons_cat %}
2019-08-18 15:56:53 +01:00
<p>({{ lat }}, {{ lon }}, {{result.commons_cat.title | pprint }}),</p>
2021-04-15 12:27:28 +01:00
{% endif %}
2019-08-18 15:56:53 +01:00
{% for element in elements %}
2021-04-15 12:27:28 +01:00
{% set tags = element.tags %}
<pre>{{ element | pprint }}</pre>
2019-08-18 15:56:53 +01:00
{% endfor %}
</body>
</html>