diff options
Diffstat (limited to 'server.py')
| -rw-r--r-- | server.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2,6 +2,7 @@ import json import algorithms import store +from debug_draw import DebugDraw from lib import run_server, get, post, read_html @@ -31,8 +32,10 @@ def shortest_path(body): path = algorithms.find_shortest_path(nodes, source_id, target_id) print(path) - response = {"path": [(nodes[node].lat, nodes[node].lng) for node in path]} - + response = {"path": [(nodes[node].lat, nodes[node].lng) for node in path], + "squares": DebugDraw.get_squares()} + print(DebugDraw.get_squares()) + DebugDraw.clear() return json.dumps(response) |
