Spaces:
Runtime error
Runtime error
venkat-srinivasan-nexusflow
commited on
Update tools.py
Browse files
tools.py
CHANGED
@@ -146,7 +146,6 @@ class Tools:
|
|
146 |
|
147 |
# For response format, see https://developers.google.com/maps/documentation/places/web-service/details#PlaceDetailsResponses
|
148 |
place_details = self.gmaps.place(place_id=place_id)["result"]
|
149 |
-
print (f"Place details for {location}: {place_details}")
|
150 |
return [place_details]
|
151 |
|
152 |
def get_distance(self, place_1: str, place_2: str):
|
@@ -231,8 +230,8 @@ class Tools:
|
|
231 |
place_details = place_details[0]
|
232 |
location = place_details["name"]
|
233 |
latlong = place_details["geometry"]["location"]
|
234 |
-
|
235 |
type_of_place = " ".join(type_of_place)
|
|
|
236 |
# Perform the search using Google Places API
|
237 |
# For response format, see https://developers.google.com/maps/documentation/places/web-service/search-nearby#nearby-search-responses
|
238 |
places_nearby = self.gmaps.places_nearby(
|
|
|
146 |
|
147 |
# For response format, see https://developers.google.com/maps/documentation/places/web-service/details#PlaceDetailsResponses
|
148 |
place_details = self.gmaps.place(place_id=place_id)["result"]
|
|
|
149 |
return [place_details]
|
150 |
|
151 |
def get_distance(self, place_1: str, place_2: str):
|
|
|
230 |
place_details = place_details[0]
|
231 |
location = place_details["name"]
|
232 |
latlong = place_details["geometry"]["location"]
|
|
|
233 |
type_of_place = " ".join(type_of_place)
|
234 |
+
print (f"Finding places for {location} located at {latlong} for {type_of_place}")
|
235 |
# Perform the search using Google Places API
|
236 |
# For response format, see https://developers.google.com/maps/documentation/places/web-service/search-nearby#nearby-search-responses
|
237 |
places_nearby = self.gmaps.places_nearby(
|