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

    Declaration

    Swift

    case scheduled(periods: [OpenPeriod])
  • 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