diff --git a/app.py b/app.py index 1b011a6..d6b360a 100755 --- a/app.py +++ b/app.py @@ -30,6 +30,7 @@ def showMap(threewords): return template('index', err="Could not find location {}".format(threewords)) + @get('/latlng/,') def showMapFromLatLng(lat, lng): try: diff --git a/static/js/app.js b/static/js/app.js index ce17a06..a0f64fc 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -134,6 +134,8 @@ var These3Words = (function () { return { - Map: Map + Map: Map, + apiGet: apiGet, + apiGetFromLatLng: apiGetFromLatLng }; }()); diff --git a/views/index.html b/views/index.html index bd5a8f7..4b96b8a 100644 --- a/views/index.html +++ b/views/index.html @@ -9,32 +9,9 @@ - + - +
% if err: @@ -55,23 +32,38 @@ -
+