From 654e8f78a98edcda9c629a0cbe7f40e6c9376a54 Mon Sep 17 00:00:00 2001 From: Nate-Wessel Date: Tue, 7 Jan 2025 18:48:42 +0000 Subject: [PATCH] organize nearby node searches into folders --- backend/app/nodes/byID/centreline.py | 2 +- backend/app/nodes/byID/here.py | 2 +- .../nearby/centreline.py} | 0 backend/app/{get_nearest_here_nodes.py => nodes/nearby/here.py} | 0 backend/app/routes.py | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename backend/app/{get_nearest_centreline_node.py => nodes/nearby/centreline.py} (100%) rename backend/app/{get_nearest_here_nodes.py => nodes/nearby/here.py} (100%) diff --git a/backend/app/nodes/byID/centreline.py b/backend/app/nodes/byID/centreline.py index 6f0df79..5a0a3a7 100644 --- a/backend/app/nodes/byID/centreline.py +++ b/backend/app/nodes/byID/centreline.py @@ -1,6 +1,6 @@ import json from app.db import getConnection -from app.get_nearest_here_nodes import get_here_nodes_within +from app.nodes.nearby.here import get_here_nodes_within from app.nodes.byID.px import get_px_node SQL = ''' diff --git a/backend/app/nodes/byID/here.py b/backend/app/nodes/byID/here.py index 43400e7..1372f5a 100644 --- a/backend/app/nodes/byID/here.py +++ b/backend/app/nodes/byID/here.py @@ -2,7 +2,7 @@ import json from app.db import getConnection -from app.get_nearest_centreline_node import get_nearest_centreline_node +from app.nodes.nearby.centreline import get_nearest_centreline_node SQL = ''' SELECT diff --git a/backend/app/get_nearest_centreline_node.py b/backend/app/nodes/nearby/centreline.py similarity index 100% rename from backend/app/get_nearest_centreline_node.py rename to backend/app/nodes/nearby/centreline.py diff --git a/backend/app/get_nearest_here_nodes.py b/backend/app/nodes/nearby/here.py similarity index 100% rename from backend/app/get_nearest_here_nodes.py rename to backend/app/nodes/nearby/here.py diff --git a/backend/app/routes.py b/backend/app/routes.py index 5bed607..bd4be9a 100644 --- a/backend/app/routes.py +++ b/backend/app/routes.py @@ -3,7 +3,7 @@ from flask import jsonify, request from app import app from app.db import getConnection -from app.get_nearest_here_nodes import get_here_nodes_within +from app.nodes.nearby.here import get_here_nodes_within from app.nodes.byID.here import get_here_node from app.nodes.byID.centreline import get_centreline_node from app.get_travel_time import get_travel_time