Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get opening hours #16

Open
ohromeo opened this issue Oct 15, 2023 · 0 comments
Open

Unable to get opening hours #16

ohromeo opened this issue Oct 15, 2023 · 0 comments

Comments

@ohromeo
Copy link

ohromeo commented Oct 15, 2023

$places = new \Biscolab\GoogleMaps\Api\Places([
    GoogleMapsApiConfigFields::KEY => $API_KEY
]);
    $results_by_name = $places->findPlaceByText($address, $params, $fields);
    $first_result = $results_by_name->current();
    $place_id = $first_result->getPlaceId();

    $candidate = $places->details($place_id, $params);

      $opening_hours = $candidate->getOpeningHours();

it appears the $open_hours is always blank, has this been implemented, or can someone explain how to retrieve this information/. test POI have the opening hours listed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant