Schema

Food Establishment

Schema.org FoodEstablishment

Type: defineFoodEstablishment(input?: FoodEstablishment)

Describes a food-related business.

Required properties

  • name string
    The name of the business.
  • address AddressInput - PostalAddress
    Physical postal address of the business.
  • openingHoursSpecification OpeningHoursInput[] - OpeningHoursSpecification
    The specification for when the business is open.
  • servesCuisine string
    The type of cuisine the restaurant serves.

Minimal Example

defineFoodEstablishment({
  name: 'test',
  logo: '/logo.png',
  address: {
    addressCountry: 'Australia',
    postalCode: '2000',
    streetAddress: '123 st',
  },
  openingHoursSpecification: [
    {
      dayOfWeek: 'Saturday',
      opens: '09:30',
      closes: '13:30',
    },
    {
      dayOfWeek: ['Monday', 'Tuesday'],
      opens: '10:30',
      closes: '15:30',
    },
  ]
})

Defaults

  • @type: FoodEstablishment
  • @id: ${canonicalHost}#identity
  • url: ${canonicalHost}
  • currenciesAccepted: ${options.defaultCurrency} See global options

Sub-Types

  • Bakery
  • BarOrPub
  • Brewery
  • Dentist
  • CafeOrCoffeeShop
  • Distillery
  • FastFoodRestaurant
  • IceCreamShop
  • Restaurant
  • Winery

Resolves

See Global Resolves for full context.

  • logo will be resolved from a string into an ImageObject and added to image
  • @type resolve: Restaurant -> ['Organization', 'LocalBusiness', 'FoodEstablishment', 'Restaurant']
  • starRating will be resolved as a Rating

Types

type ValidFoodEstablishmentSubTypes = 'Bakery' |
  'BarOrPub' |
  'Brewery' |
  'Dentist' |
  'CafeOrCoffeeShop' |
  'Distillery' |
  'FastFoodRestaurant' |
  'IceCreamShop' |
  'Restaurant' |
  'Winery'

export interface FoodEstablishmentSimple extends Omit<LocalBusiness, '@type'> {
  '@type'?: ['Organization', 'LocalBusiness', 'FoodEstablishment'] | ['Organization', 'LocalBusiness', 'FoodEstablishment', ValidFoodEstablishmentSubTypes] | ValidFoodEstablishmentSubTypes
  /**
   * Indicates whether a FoodEstablishment accepts reservations.
   */
  acceptsReservations?: string | boolean
  /**
   * URL of the menu.
   */
  hasMenu?: string
  /**
   * The cuisine of the restaurant.
   */
  servesCuisine?: string
  /**
   * An official rating for a lodging business or food establishment
   */
  starRating?: NodeRelations<Rating>
}