Compare commits
No commits in common. "65d1fbf6fa02ed0040e32a47ee749a33a4db37dc" and "cfa0bab9fc4da793f2af553c3f211a7453a3a8b0" have entirely different histories.
65d1fbf6fa
...
cfa0bab9fc
|
@ -62,11 +62,10 @@ L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|||
<div class="m-3" id="main">
|
||||
<h1>Geocode coordinates to Commons Category</h1>
|
||||
|
||||
<p>
|
||||
<a href="{{ url_for('index') }}">home</a>
|
||||
|
|
||||
<a href="{{ url_for('index', lat=lat, lon=lon) }}">visit endpoint</a>
|
||||
<p><a href="{{ url_for('index', lat=lat, lon=lon) }}">visit endpoint</a>
|
||||
|
||||
| <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 %}
|
||||
|
|
|
@ -1,41 +1,28 @@
|
|||
{% extends "base.html" %}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Geocode to commons</title>
|
||||
</head>
|
||||
|
||||
{% block title %}Geocode to Commons: error{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="m-3">
|
||||
<body>
|
||||
<h1>Geocode coordinates to Commons Category</h1>
|
||||
|
||||
<p>
|
||||
<a href="{{ url_for('index') }}">home</a>
|
||||
|
|
||||
<a href="{{ url_for('index', lat=lat, lon=lon) }}">visit endpoint</a>
|
||||
|
|
||||
<a href="https://www.openstreetmap.org/#map=17/{{lat }}/{{ lon }}">view in OSM</a>
|
||||
|
|
||||
<a href="{{ url_for('detail_page', lat=lat, lon=lon) }}">#</a>
|
||||
<p><a href="{{ url_for('index', lat=lat, lon=lon) }}">visit endpoint</a>
|
||||
|
||||
| <a href="https://www.openstreetmap.org/#map=17/{{lat }}/{{ lon }}">view in OSM</a>
|
||||
|
||||
| <a href="{{ url_for('detail_page', lat=lat, lon=lon) }}">#</a>
|
||||
|
||||
</p>
|
||||
|
||||
<p>latitude: {{ lat }} / longitude: {{ lon }}</p>
|
||||
|
||||
{% if error %}
|
||||
<h2>error</h2>
|
||||
|
||||
<p>{{ error }}</p>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if query %}
|
||||
<h2>query</h2>
|
||||
|
||||
<pre>{{ query }}</pre>
|
||||
{% endif %}
|
||||
|
||||
{% if r %}
|
||||
<h2>reply</h2>
|
||||
|
||||
<pre>{{ r.text }}</pre>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue