OpenHours

public enum OpenHours : Codable, Hashable

Opening hours structure. Related to the POI results only

  • Indicates that POI is opened 24 hours a day

    Declaration

    Swift

    case alwaysOpened
  • Data provider indicated that POI is temporarily closed

    Declaration

    Swift

    case temporarilyClosed
  • Data provider indicated that POI is permanently closed

    Declaration

    Swift

    case permanentlyClosed
  • The regular schedule by weekdays. Represents open periods only. Search-box results can contain additional metadata.

    Declaration

    Swift

    case scheduled(
        periods: [OpenPeriod],
        weekdayText: WeekdayText? = nil,
        note: String? = nil
    )
  • Initializer for custom Decoder

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    Decoder class

  • Encode structure with your own Encoder

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    Custom encoder entity

  • Convenience type for array of strings describing the hours a POI is regularly scheduled open.

    Declaration

    Swift

    public typealias WeekdayText = [String]