Skip to content

Commit

Permalink
removing unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tkalir committed Oct 3, 2024
1 parent eb374ca commit 9f6999a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions anyway/parsers/location_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f6999a

Please sign in to comment.