diff --git a/googlemaps/places.py b/googlemaps/places.py index eb748b35..1ead5fe4 100644 --- a/googlemaps/places.py +++ b/googlemaps/places.py @@ -23,6 +23,7 @@ PLACES_FIND_FIELDS_BASIC = set( [ + "business_status", "formatted_address", "geometry", "geometry/location", @@ -59,6 +60,7 @@ [ "address_component", "adr_address", + "business_status", "formatted_address", "geometry", "geometry/location", diff --git a/googlemaps/test/test_places.py b/googlemaps/test/test_places.py index a21cd8ee..c2ce4ec9 100644 --- a/googlemaps/test/test_places.py +++ b/googlemaps/test/test_places.py @@ -47,14 +47,14 @@ def test_places_find(self): status=200, content_type='application/json') self.client.find_place('restaurant', 'textquery', - fields=['geometry/location', 'place_id'], + fields=['business_status', 'geometry/location', 'place_id'], location_bias='point:90,90', language=self.language) self.assertEqual(1, len(responses.calls)) self.assertURLEqual('%s?language=en-AU&inputtype=textquery&' 'locationbias=point:90,90&input=restaurant' - '&fields=geometry/location,place_id&key=%s' + '&fields=business_status,geometry/location,place_id&key=%s' % (url, self.key), responses.calls[0].request.url) with self.assertRaises(ValueError): @@ -119,11 +119,12 @@ def test_place_detail(self): status=200, content_type='application/json') self.client.place('ChIJN1t_tDeuEmsRUsoyG83frY4', - fields=['geometry/location', 'place_id'], language=self.language) + fields=['business_status', 'geometry/location', 'place_id'], + language=self.language) self.assertEqual(1, len(responses.calls)) self.assertURLEqual('%s?language=en-AU&placeid=ChIJN1t_tDeuEmsRUsoyG83frY4' - '&key=%s&fields=geometry/location,place_id' + '&key=%s&fields=business_status,geometry/location,place_id' % (url, self.key), responses.calls[0].request.url) with self.assertRaises(ValueError):