Spaces:
Runtime error
Runtime error
venkat-srinivasan-nexusflow
commited on
Commit
β’
e4c9429
1
Parent(s):
58994e5
Update tools.py
Browse files
tools.py
CHANGED
@@ -305,8 +305,12 @@ class Tools:
|
|
305 |
and "name" in place_name["results"]
|
306 |
):
|
307 |
place_name = place_name["results"]["name"]
|
|
|
|
|
308 |
elif isinstance(place_name, dict) and "name" in place_name:
|
309 |
place_name = place_name["name"]
|
|
|
|
|
310 |
|
311 |
place_details = self.get_latitude_longitude(place_name)
|
312 |
if len(place_details) == 0:
|
|
|
305 |
and "name" in place_name["results"]
|
306 |
):
|
307 |
place_name = place_name["results"]["name"]
|
308 |
+
if "vicinity" in place_name["results"]:
|
309 |
+
place_name += ", " + place_name["results"]["vicinity"]
|
310 |
elif isinstance(place_name, dict) and "name" in place_name:
|
311 |
place_name = place_name["name"]
|
312 |
+
if "vicinity" in place_name:
|
313 |
+
place_name += ", " + place_name["vicinity"]
|
314 |
|
315 |
place_details = self.get_latitude_longitude(place_name)
|
316 |
if len(place_details) == 0:
|