Closed ghost closed 4 years ago
Thanks for the PR @bitecodes
Can you please add a test to cover the example you provided?
Thanks for the PR @bitecodes
Can you please add a test to cover the example you provided?
Yes, I will add a test
Added a test and made open_now nullable
Code style fixed! ;-)
Merged 🎉
Could you please tag a new version of the package @Nyholm? I only have permissions on this repo, not on the subtree split versions.
Thanks!
Thanks @jbelien :)
If you perform the following request you will see that the value of "opening_hours" is an empty object and "open_now" is not set.
https://maps.googleapis.com/maps/api/place/textsearch/json?location=51.0572773,13.7763207&rankby=distance&type=transit_station&key=YOUR_API_KEY
This will result in the following error.
Therefore, we should check if the property "open_now" exists.