summaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2020-12-16 07:04:00 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2020-12-16 07:04:00 +0100
commit90cba31d48974f1b7f694e570f8732098359a5ea (patch)
tree8c7a8222d368675fc580497877b57dbd257e4237 /server.py
parent6c8acb4f4eabb20da41b941158bf52038035699f (diff)
parente15617848b6837216a8ceed4ca23b3bb415a42f7 (diff)
downloadtdde25-90cba31d48974f1b7f694e570f8732098359a5ea.tar.gz
Merge remote-tracking branch 'origin/xml-iterparse'
Diffstat (limited to 'server.py')
-rw-r--r--server.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/server.py b/server.py
index 25d2826..90e135e 100644
--- a/server.py
+++ b/server.py
@@ -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)