diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2020-12-16 07:04:00 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2020-12-16 07:04:00 +0100 |
| commit | 90cba31d48974f1b7f694e570f8732098359a5ea (patch) | |
| tree | 8c7a8222d368675fc580497877b57dbd257e4237 /server.py | |
| parent | 6c8acb4f4eabb20da41b941158bf52038035699f (diff) | |
| parent | e15617848b6837216a8ceed4ca23b3bb415a42f7 (diff) | |
| download | tdde25-90cba31d48974f1b7f694e570f8732098359a5ea.tar.gz | |
Merge remote-tracking branch 'origin/xml-iterparse'
Diffstat (limited to 'server.py')
| -rw-r--r-- | server.py | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -14,7 +14,7 @@ def index(): global grid global unconnected_nodes - nodes, grid, unconnected_nodes = store.extract_osm_nodes("university.osm") + nodes, grid, unconnected_nodes = store.extract_osm_nodes("linkoping.osm") return read_html('templates/index.html') @@ -55,9 +55,7 @@ def shortest_path(body): body['lng2'])) 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]} return json.dumps(response) |
