Crowous
    Preparing search index...

    Class Restaurant

    Index

    Properties

    access: null | string
    accessibility: boolean
    address: string

    Full address of the restaurant.

    album: null | Image
    area: string
    closing: string
    contact: Contact

    Contact of the restaurant owners.

    crousAndGoUrl: null | string
    description: string
    id: number
    latitude: null | number
    longitude: null | number
    menus: Menu[]

    Menus for each day of the current month and a bit more sometimes. Not sure when they decide to unpublish old menus and publish new ones.

    Also, note that they might be subject to change the menu of a given date frequently.

    opening: string

    An opening day string is three boolean (0 or 1). Each day of the week is separated by commas (,) and each day contains three booleans (0 or 1).

    Those three booleans are "Morning, Lunch, Evening" values in this order and values 0 means closed and 1 means open.

    // Let's take the following `opening` string.
    "010,011,011,011,111,000,000"
    // - Monday is closed on Morning and Evening, but is opened on Lunch.
    // - Tuesday, Wednesday and Thursday are closed on Morning, but is opened on Lunch and Evening.
    // - Friday is opened all day long (Morning, Lunch and Evening)
    // - Saturday and Sunday are closed all day long (Morning, Lunch and Evening)
    operationalHours: null | string
    paymentMethods: PaymentMethod[]
    photo: null | Image
    shortDescription: string
    title: string
    wifi: boolean

    Whether the restaurant has Wi-Fi or not.

    Methods

    • Get the meals of the restaurant for a given date.

      Parameters

      • date: Date

      Returns null | Meal[]

      A list of the meals for that date or null if nothing is found.

    • Checks whether the restaurant is opened at a certain date on a certain moment.

      Parameters

      Returns boolean

      const today = new Date();
      const open = restaurant.isOpen(today, Moment.Lunch);
    • Checks whether the restaurant is opened at a certain day index on a certain moment.

      Parameters

      Returns boolean

      const open = restaurant.isOpen(Day.Monday, Moment.Lunch);