Class Place.Types.OpeningHours
Information about business hour of the place.
Implements
Namespace: Google.Maps.Places.V1
Assembly: Google.Maps.Places.V1.dll
Syntax
public sealed class Place.Types.OpeningHours : IMessage<Place.Types.OpeningHours>, IEquatable<Place.Types.OpeningHours>, IDeepCloneable<Place.Types.OpeningHours>, IBufferMessage, IMessage
Constructors
OpeningHours()
Declaration
public OpeningHours()
OpeningHours(OpeningHours)
Declaration
public OpeningHours(Place.Types.OpeningHours other)
Parameters
| Type | Name | Description |
|---|---|---|
| Place.Types.OpeningHours | other |
Properties
HasOpenNow
Gets whether the "open_now" field is set
Declaration
public bool HasOpenNow { get; }
Property Value
| Type | Description |
|---|---|
| bool |
NextCloseTime
The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
Declaration
public Timestamp NextCloseTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |
NextOpenTime
The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
Declaration
public Timestamp NextOpenTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |
OpenNow
Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
Declaration
public bool OpenNow { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Periods
The periods that this place is open during the week. The periods are in chronological order, 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.
The starting day of periods is NOT fixed and should not be assumed to
be Sunday. The API determines the start day based on a variety of
factors. For example, for a 24/7 business, the first period may begin on
the day of the request. For other businesses, it might be the first day
of the week that they are open.
NOTE: The ordering of the periods array is independent of the ordering
of the weekday_descriptions array. Do not assume they will begin on the
same day.
Declaration
public RepeatedField<Place.Types.OpeningHours.Types.Period> Periods { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<Place.Types.OpeningHours.Types.Period> |
SecondaryHoursType
A type string used to identify the type of secondary hours.
Declaration
public Place.Types.OpeningHours.Types.SecondaryHoursType SecondaryHoursType { get; set; }
Property Value
| Type | Description |
|---|---|
| Place.Types.OpeningHours.Types.SecondaryHoursType |
SpecialDays
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.
Declaration
public RepeatedField<Place.Types.OpeningHours.Types.SpecialDay> SpecialDays { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<Place.Types.OpeningHours.Types.SpecialDay> |
WeekdayDescriptions
Localized strings describing the opening hours of this place, one string for each day of the week.
NOTE: The order of the days and the start of the week is determined by
the locale (language and region). The ordering of the periods array is
independent of the ordering of the weekday_descriptions array. Do not
assume they will begin on the same day.
Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
Declaration
public RepeatedField<string> WeekdayDescriptions { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<string> |