01: Initial commit with neo4j
This commit is contained in:
10
app/services/property_service.py
Normal file
10
app/services/property_service.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from app.repositories.property_repo import find_nearest_property_and_owner
|
||||
|
||||
def get_nearest_asset(driver, lat: float, lng: float):
|
||||
|
||||
data = find_nearest_property_and_owner(driver, lat, lng)
|
||||
|
||||
if not data:
|
||||
raise ValueError("No nearby property found")
|
||||
|
||||
return data
|
||||
Reference in New Issue
Block a user