From a18528d2f92af13c671a3c0148bb2eb1a5640765 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 6 Oct 2021 18:42:06 +0200 Subject: [PATCH] Incldue max_distance in api_find_osm_candidates response --- web_view.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web_view.py b/web_view.py index dd95c2b..d82f28b 100755 --- a/web_view.py +++ b/web_view.py @@ -412,7 +412,13 @@ def api_find_osm_candidates(item_id): max_distance=1_000) t1 = time() - t0 - return cors_jsonify(success=True, qid=item.qid, nearby=nearby, duration=t1) + return cors_jsonify( + success=True, + qid=item.qid, + nearby=nearby, + duration=t1, + max_distance=max_distance + ) @app.route("/api/1/missing")