Skip to content

Commit

Permalink
note who does the routing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate-Wessel committed Dec 3, 2024
1 parent efffb5b commit 7b38061
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ def node(node_id):
#shell function - outputs json for use on frontend
@app.route('/link-nodes/<from_node_id>/<to_node_id>', methods=['GET'])
def get_links_between_two_nodes(from_node_id, to_node_id):
"""Returns links of the shortest path between two nodes on the HERE network,
including link_dir IDs, link geometries, and lengths in meters."""
"""Returns links of the shortest path between any two nodes on the HERE network.
Results include link_dir IDs, link geometries, and lengths in meters.
Routing is done in PostgreSQL using `here_gis.get_links_btwn_nodes_{map_version}`
"""
try:
from_node_id = int(from_node_id)
to_node_id = int(to_node_id)
Expand Down

0 comments on commit 7b38061

Please sign in to comment.