Instantly share code, notes, and snippets.
Created
October 2, 2019 06:07
Star
You must be signed in to star a gist
restaurant-menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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