business_status
OPERATIONAL
CLOSED_TEMPORARILY
CLOSED_PERMANENTLY
fields
const request = { placeId: 'ChIJ9xzt5AYVkFQRTSTBq6a4nWc', fields: ['name', 'business_status'] }; const service = new google.maps.places.PlacesService(map); service.getDetails(request, callback);
const request = {
placeId: 'ChIJ9xzt5AYVkFQRTSTBq6a4nWc',
fields: ['name', 'business_status']
};
const service = new google.maps.places.PlacesService(map);
service.getDetails(request, callback);
function callback(place, status) { if (status !== google.maps.places.PlacesServiceStatus.OK) return; if (place.business_status) { console.log(`${place.name} is currently ${place.business_status}.`); } }
function callback(place, status) {
if (status !== google.maps.places.PlacesServiceStatus.OK) return;
if (place.business_status) {
console.log(`${place.name} is currently ${place.business_status}.`);
}
permanently_closed
opening_hours