venkat-srinivasan-nexusflow commited on
Commit
2b8a07e
β€’
1 Parent(s): ffa95ac

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +0 -4
tools.py CHANGED
@@ -118,7 +118,6 @@ class Tools:
118
 
119
  - location: This can be a city like 'Austin', or a place like 'Austin Airport', etc.
120
  """
121
- print (f"Getting location for {location}")
122
  if (
123
  isinstance(location, list)
124
  and len(location) != 0
@@ -231,7 +230,6 @@ class Tools:
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(
@@ -245,7 +243,6 @@ class Tools:
245
 
246
  places_nearby = places_nearby["results"]
247
  places = []
248
- print (f"Found {len(places_nearby)}!")
249
  for place_nearby in places_nearby:
250
  place_location = place_nearby["geometry"]["location"]
251
  distance = self.haversine(
@@ -289,7 +286,6 @@ class Tools:
289
  location = location[0]
290
  location = location['address_components'][0]['long_name']
291
 
292
- print (f"Location found: {location}")
293
  for place_name in place_names:
294
  if isinstance(place_name, str):
295
  if location and isinstance(location, list) and len(location) > 0:
 
118
 
119
  - location: This can be a city like 'Austin', or a place like 'Austin Airport', etc.
120
  """
 
121
  if (
122
  isinstance(location, list)
123
  and len(location) != 0
 
230
  location = place_details["name"]
231
  latlong = place_details["geometry"]["location"]
232
  type_of_place = " ".join(type_of_place)
 
233
  # Perform the search using Google Places API
234
  # For response format, see https://developers.google.com/maps/documentation/places/web-service/search-nearby#nearby-search-responses
235
  places_nearby = self.gmaps.places_nearby(
 
243
 
244
  places_nearby = places_nearby["results"]
245
  places = []
 
246
  for place_nearby in places_nearby:
247
  place_location = place_nearby["geometry"]["location"]
248
  distance = self.haversine(
 
286
  location = location[0]
287
  location = location['address_components'][0]['long_name']
288
 
 
289
  for place_name in place_names:
290
  if isinstance(place_name, str):
291
  if location and isinstance(location, list) and len(location) > 0: