Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleMapsPlacesV1PlaceOpeningHours

import type { GoogleMapsPlacesV1PlaceOpeningHours } from "https://googleapis.deno.dev/v1/places:v1.ts";

Information about business hour of the place.

interface GoogleMapsPlacesV1PlaceOpeningHours {
openNow?: boolean;
secondaryHoursType?:
| "SECONDARY_HOURS_TYPE_UNSPECIFIED"
| "DRIVE_THROUGH"
| "HAPPY_HOUR"
| "DELIVERY"
| "TAKEOUT"
| "KITCHEN"
| "BREAKFAST"
| "LUNCH"
| "DINNER"
| "BRUNCH"
| "PICKUP"
| "ACCESS"
| "SENIOR_HOURS"
| "ONLINE_SERVICE_HOURS";
weekdayDescriptions?: string[];
}

§Properties

§
openNow?: boolean
[src]

Is this place open right now? Always present unless we lack time-of-day or timezone data for these opening hours.

§

The periods that this place is open during the week. The periods are in chronological order, starting with Sunday in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations.

§
secondaryHoursType?: "SECONDARY_HOURS_TYPE_UNSPECIFIED" | "DRIVE_THROUGH" | "HAPPY_HOUR" | "DELIVERY" | "TAKEOUT" | "KITCHEN" | "BREAKFAST" | "LUNCH" | "DINNER" | "BRUNCH" | "PICKUP" | "ACCESS" | "SENIOR_HOURS" | "ONLINE_SERVICE_HOURS"
[src]

A type string used to identify the type of secondary hours.

§

Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.

§
weekdayDescriptions?: string[]
[src]

Localized strings describing the opening hours of this place, one string for each day of the week. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"