diff --git a/googlemaps/places.py b/googlemaps/places.py index 269a17f..123fa2c 100644 --- a/googlemaps/places.py +++ b/googlemaps/places.py @@ -74,7 +74,7 @@ "photo", "place_id", "plus_code", - "type", + "types", "url", "utc_offset", "vicinity", diff --git a/tests/test_places.py b/tests/test_places.py index 32f03d1..0333dec 100644 --- a/tests/test_places.py +++ b/tests/test_places.py @@ -164,7 +164,7 @@ def test_place_detail(self): self.client.place( "ChIJN1t_tDeuEmsRUsoyG83frY4", fields=["business_status", "geometry/location", - "place_id", "reviews"], + "place_id", "reviews", "types"], language=self.language, reviews_no_translations=True, reviews_sort="newest", @@ -174,7 +174,7 @@ def test_place_detail(self): self.assertURLEqual( "%s?language=en-AU&placeid=ChIJN1t_tDeuEmsRUsoyG83frY4" "&reviews_no_translations=true&reviews_sort=newest" - "&key=%s&fields=business_status,geometry/location,place_id,reviews" + "&key=%s&fields=business_status,geometry/location,place_id,reviews,types" % (url, self.key), responses.calls[0].request.url, )