Skip to content

Commit

Permalink
consistently define "network" property of nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate-Wessel committed Jan 3, 2025
1 parent a47d595 commit 70f6686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/get_nearest_centreline_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def get_nearest_centreline_node(longitude, latitude):
node = {
'centreline_id': centreline_id, # deprecated
'node_id': centreline_id,
'network': 'centreline',
'street_names': street_names,
'geometry': loadJSON(geojson),
'distance': distance
Expand Down
1 change: 1 addition & 0 deletions backend/app/get_nearest_here_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def get_here_nodes_within(meters, longitude, latitude, limit=20):
if distance <= meters:
candidate_nodes.append( {
'node_id': node_id,
'network': 'here',
'street_names': street_names,
'geometry': json.loads(geojson)
} )
Expand Down

0 comments on commit 70f6686

Please sign in to comment.