unhead@betaType: defineFoodEstablishment(input?: FoodEstablishment)
Describes a food-related business.
stringAddressInput - PostalAddressstring | booleanstringOpeningHoursInput[] - OpeningHoursSpecificationstringdefineFoodEstablishment({
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',
},
]
})
FoodEstablishment${canonicalHost}#identity${canonicalHost}${options.defaultCurrency} See global optionsBakeryBarOrPubBreweryDentistCafeOrCoffeeShopDistilleryFastFoodRestaurantIceCreamShopRestaurantWinerySee 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 Ratingtype 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
/**
* Methods of payment accepted.
*/
'paymentAccepted'?: string
/**
* The cuisine of the restaurant.
*/
'servesCuisine'?: string
/**
* An official rating for a lodging business or food establishment
*/
'starRating'?: NodeRelations<Rating>
}