Skip to content

Instantly share code, notes, and snippets.

@patrickcoombe
Created October 2, 2019 06:07
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save patrickcoombe/1d1a67286096b70be8326e5c11034e0c to your computer and use it in GitHub Desktop.
restaurant-menu
// original code from schema.org modifciations made to pass Google Structured Data Testing Tool
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"Restaurant",
"url":"http://www.thisisarestaurant.com",
"name":"The Restaurant",
"image":"http://www.example.com/image-of-some-restaurant.jpg",
"telephone":"5615551212",
"priceRange" : "$100 - $200",
"description" : "a description of this business",
"address" : {
"@type" : "PostalAddress",
"streetAddress" : "STREET ADDRESS",
"addressLocality" : "CITY",
"addressRegion" : "STATE ABBREVIATION",
"postalCode" : "ZIP CODE"
},
"servesCuisine":[
"American cuisine"
],
"hasMenu":{
"@type":"Menu",
"name":"Dine-In Menu",
"description":"Menu for in-restaurant dining only.",
"hasMenuSection":[
{
"@type":"MenuSection",
"name":"Dinner",
"description":"Dinner dishes",
"image":"https://thisisarestaurant.com/dinner_dishes.jpg",
"offers":{
"@type":"Offer",
"availabilityEnds":"T8:22:00",
"availabilityStarts":"T8:22:00"
},
"hasMenuSection":[
{
"@type":"MenuSection",
"name":"Starters",
"description":"Appetizers and such",
"image":"https://thisisarestaurant.com/starter_dishes.jpg",
"offers":{
"@type":"Offer",
"availabilityEnds":"T8:22:00",
"availabilityStarts":"T8:22:00"
},
"hasMenuItem":{
"@type":"MenuItem",
"name":"Potato Skins",
"description":"Small serving of stuffed potato skins.",
"offers":{
"@type":"Offer",
"price":"7.49",
"priceCurrency":"USD"
},
"suitableForDiet":"http://schema.org/GlutenFreeDiet"
}
},
{
"@type":"MenuSection",
"name":"Soups & Salads",
"description":"Salads and a few choices of soup",
"image":"https://thisisarestaurant.com/soup_and_salad_dishes.jpg",
"offers":{
"@type":"Offer",
"availabilityEnds":"T8:22:00",
"availabilityStarts":"T8:22:00"
},
"hasMenuItem":{
"@type":"MenuItem",
"name":"Pea Soup",
"description":"Creamy pea soup topped with melted cheese and sourdough croutons.",
"offers":{
"@type":"Offer",
"price":"3.49",
"priceCurrency":"USD"
}
}
}
]
}
]
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment