diff options
Diffstat (limited to 'server.py')
| -rw-r--r-- | server.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -11,7 +11,7 @@ nodes = None @get('/') def index(): global nodes - nodes = store.extract_osm_nodes("ostergotland.osm") + nodes = store.extract_osm_nodes("linkoping.osm") return read_html('templates/index.html') @@ -30,7 +30,6 @@ def shortest_path(body): target_id = algorithms.get_closest_node_id(nodes, store.Node(-1, body['lat2'], 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]} return json.dumps(response) |
