slimkrazy / python-google-places

Simple wrapper around the new 'experimental' Google Places API
MIT License
474 stars 167 forks source link

Temporary Closures Variable (business_status) #131

Open PFurst2000 opened 3 years ago

PFurst2000 commented 3 years ago

In May 2020, the Google Places API added a business_status variable in Place Search and Place Details to verify the status of establishment closures. This variable has replaced the prior variable used to identify whether an establishment is open or closed. Is it possible to update the Python package to access this field? I had hoped to obtain outputs for this variable using the following line of code but received the following error: "AttributeError: 'Place' object has no attribute 'business_status'."

for place in query_result.places: place.get_details() print (place.name) print (place.business_status)

More info about the business_status variable is available at: https://cloud.google.com/blog/products/maps-platform/temporary-closures-now-available-places-api

Thank you very much for this excellent code package!