Incldue max_distance in api_find_osm_candidates response

This commit is contained in:
Edward Betts 2021-10-06 18:42:06 +02:00
parent f8eeb4200c
commit a18528d2f9

View file

@ -412,7 +412,13 @@ def api_find_osm_candidates(item_id):
max_distance=1_000) max_distance=1_000)
t1 = time() - t0 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") @app.route("/api/1/missing")