react-google-maps-api icon indicating copy to clipboard operation
react-google-maps-api copied to clipboard

open_now and utc_offset is deprecated

Open ikarofelix opened this issue 10 months ago • 0 comments

Everything I find about this issue is pretty old, and some even mentioned updating the library. I'm using the latest version, and this issue disappeared for a few days, but now it's back.

Error: More than 190 errors mentioning utc_offset or open_now.

Image

Image

Application flow:

First, I call getPlaceDetails to retrieve the name, address, etc.:

Image

I'm destructuring everything to make sure I'm not receiving anything related to utc_offset or isOpen, but from the console log, I can see that I'm not receiving those fields since they are not included in fields.

Here's the console log of the place:

Image

After that, formData simply structures the place information, and then I call handleNearbyPlaces. This NearbyPlaces function tries to find, for example, restaurants near the place's latitude and longitude.

Image

This nearbyPlaces request allows passing openNow: true, but whether I pass true or false, the error persists.

In other words, nowhere in my code do I request open_now or utc_offset, yet I'm still getting the error.

ikarofelix avatar Feb 01 '25 16:02 ikarofelix