From 9f6999acbb3db9228b634dbfed75583c9d6282cd Mon Sep 17 00:00:00 2001 From: tkalir Date: Thu, 3 Oct 2024 20:59:11 +0300 Subject: [PATCH] removing unused code --- anyway/parsers/location_extraction.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/anyway/parsers/location_extraction.py b/anyway/parsers/location_extraction.py index 6076a2f9..5af57583 100644 --- a/anyway/parsers/location_extraction.py +++ b/anyway/parsers/location_extraction.py @@ -264,18 +264,6 @@ def read_n_closest_streets(db, n, latitude, longitude, road_no=None): return [result["street1_hebrew"] for result in result_dicts] -def read_n_closest_markers(db, n, latitude, longitude, resolution, road_no=None): - markers = read_markers_and_distance_from_location(db, latitude, longitude, resolution, road_no) - # Sort by distance - sorted_markers = markers.sort_values(by="dist_point") - - top_n_unique_streets = sorted_markers.head(n) - - # Convert to dictionary if needed - result_dicts = top_n_unique_streets.to_dict(orient='records') - return result_dicts - - def set_accident_resolution(accident_row): """ set the resolution of the accident