googlemaps / googlemaps/extended-component-library
Locator Plus incorrectly shows “Closed” for locations open 24 hours
- Dominant language
- TypeScript
- Stars
- 192
- Forks
- 22
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 8
Description
We are using Google Maps Platform’s Locator Plus solution for a multi-location business. Every location is open 24 hours a day, seven days a week.
However, Locator Plus incorrectly displays **“Closed”** in two places:
1. At the top of the selected location’s details
2. Beside the operating-hours section
When the hours section is expanded, it correctly shows:
* Monday: Open 24 hours
* Tuesday: Open 24 hours
* Wednesday: Open 24 hours
* Thursday: Open 24 hours
* Friday: Open 24 hours
* Saturday: Open 24 hours
* Sunday: Open 24 hours
The locations also display correctly as open 24 hours in Google Maps, including when viewed while signed out or in an incognito browser window. We confirmed that there are no conflicting special hours or temporary closure settings.
We tested the affected location through the Places JavaScript API and received the following results:
```text
requestStatus: "OK"
businessStatus: "OPERATIONAL"
isOpenNow: true
periods: Array(1)
weekdayText: Array(7)
utcOffsetMinutes: -300
```
The `weekdayText` response correctly lists every day as “Open 24 hours.”
The location’s opening-hours period also appears to use Google’s standard format for a continuously open business: one opening period beginning Sunday at midnight without a closing time.
We are currently loading version `0.6.15` of the Google Maps Extended Component Library. We previously observed the same behavior while using an earlier version, believed to be `0.6.11`, so this does not appear to be a recent version-specific regression.
Our Locator Plus configuration uses valid Place IDs and has location details enabled. No custom code is being used to calculate or override the open/closed status.
Based on the API returning `isOpenNow: true`, it appears Locator Plus may be incorrectly interpreting the opening-hours structure used for businesses that are continuously open 24/7.
Has anyone else encountered this issue with Locator Plus or the `gmpx-place-overview` component?
Is there a recommended workaround for preventing Locator Plus from showing “Closed” when the Places API correctly reports that the location is open?
Contributor guide
Research direction
Start with the gmpx-place-overview component and reproduce the issue using a Place ID whose Places JavaScript API response has isOpenNow: true and one opening period without a closing time. Compare the displayed status in version 0.6.15 with the returned periods and weekdayText; done when continuously open locations no longer show “Closed” while their expanded hours remain correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100