Spaces:
Runtime error
Runtime error
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -240,11 +240,14 @@ class Tools:
|
|
| 240 |
radius=radius_miles * 1609.34,
|
| 241 |
)
|
| 242 |
if places_nearby["status"] != "OK":
|
|
|
|
| 243 |
return []
|
| 244 |
|
| 245 |
places_nearby = places_nearby["results"]
|
| 246 |
places = []
|
|
|
|
| 247 |
for place_nearby in places_nearby:
|
|
|
|
| 248 |
place_location = place_nearby["geometry"]["location"]
|
| 249 |
distance = self.haversine(
|
| 250 |
latlong["lng"],
|
|
|
|
| 240 |
radius=radius_miles * 1609.34,
|
| 241 |
)
|
| 242 |
if places_nearby["status"] != "OK":
|
| 243 |
+
print (f"Found nothing!")
|
| 244 |
return []
|
| 245 |
|
| 246 |
places_nearby = places_nearby["results"]
|
| 247 |
places = []
|
| 248 |
+
print (f"Found {len(places_nearby)}!")
|
| 249 |
for place_nearby in places_nearby:
|
| 250 |
+
print (f"Found {place_nearby}!")
|
| 251 |
place_location = place_nearby["geometry"]["location"]
|
| 252 |
distance = self.haversine(
|
| 253 |
latlong["lng"],
|