Schema Markup for a Local Business: LocalBusiness and Restaurant Structured Data

A laptop showing blurred lines of code on a diner counter beside a printed menu and a cup of coffee

Thirteen keys. That is how many top-level properties appear in the Restaurant example on Google’s Local Business structured data page, from @context down to menu, and two of them, name and address, are the only ones Google marks as required. The rest are recommended, a couple come with warnings attached, and one of them is the property small restaurants most often misuse, because it looks like free stars.

SMA Marketing, “Choosing the Right LocalBusiness Schema Type”

Structured data is a block of code, invisible on the page, that labels the facts a person can already read there: this string is the name, this one is the phone number, these are the hours. Search engines read the labels instead of guessing. The questions owners bring to it are practical. Which type fits a diner or a bakery? What does the code look like? Will it put stars in the search results? Does it help rank at all? Google’s documentation and schema.org’s vocabulary answer most of these plainly, and the answer to the last one comes with a catch.

Picking the type: LocalBusiness, FoodEstablishment, Restaurant

Google’s page gives one rule for choosing: “Use the most specific LocalBusiness sub-type possible,” with Restaurant, DaySpa and HealthClub as its examples. The types themselves live at schema.org, the shared vocabulary that the big search engines read. On the schema.org Restaurant page the family tree runs Thing, then Organization or Place, then LocalBusiness, then FoodEstablishment, then Restaurant, whose whole description is two words: “A restaurant.”

The FoodEstablishment page, described there as “A food-related business,” lists nine more specific types: Bakery, BarOrPub, Brewery, CafeOrCoffeeShop, Distillery, FastFoodRestaurant, IceCreamShop, Restaurant and Winery. A doughnut shop with three stools is a Bakery. A counter-service burger place is a FastFoodRestaurant. A diner with booths and a printed menu is a Restaurant. The type sets which properties make sense, so a wrong pick is less a penalty than a bad fit, like a gasket cut for the next size of pipe.

Because the food types sit under LocalBusiness, every property Google lists for a local business carries down to them. The food branch adds a few of its own. Schema.org gives acceptsReservations, which takes yes or no or a link to a booking page; hasMenu, for the menu as a link, text or structured data; servesCuisine, for the kind of food; and starRating, which the vocabulary reserves for an official rating from a national association or standards body, not a customer score.

A worked example for a made-up diner

Here is a complete block for an invented business, with placeholder values throughout: the domain is the reserved example.com, and the phone number sits in the 555-01 range set aside for fiction. It follows the property list on Google’s page and goes in the page’s HTML as a script of type application/ld+json. Google’s structured data general guidelines list the formats Google reads and mark one “JSON-LD (recommended),” which is the one used here.

{
  "@context": "https://schema.org",
  "@type": "Restaurant",
  "name": "Example Diner",
  "image": "https://www.example.com/photos/counter.jpg",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "100 Main St",
    "addressLocality": "Exampleton",
    "addressRegion": "NY",
    "postalCode": "00000",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 40.00000,
    "longitude": -73.00000
  },
  "url": "https://www.example.com/",
  "telephone": "+1-555-555-0123",
  "servesCuisine": "American",
  "priceRange": "$$",
  "acceptsReservations": false,
  "menu": "https://www.example.com/menu/",
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "06:00",
      "closes": "21:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Saturday", "Sunday"],
      "opens": "07:00",
      "closes": "15:00"
    }
  ]
}

Each line answers to a rule on Google’s page. The telephone is described there as “A business phone number meant to be the primary contact method for customers,” with the instruction “Be sure to include the country code and area code in the phone number.” The url should be “The fully-qualified URL of the specific business location,” and “The URL must be a working link.” The menu entry is, for food establishments, “the fully-qualified URL of the menu.” The priceRange field “must be shorter than 100 characters,” and the latitude and longitude need at least five decimal places. Google also accepts short day names like Monday without the full schema.org prefix, which keeps the hours block readable.

A hand-lettered blank paper tag tied with string to a wooden crate of tomatoes in a restaurant walk-in

One small conflict between the two references is worth knowing. Google’s example uses the property menu. Schema.org’s Restaurant page lists hasMenu and says it supersedes menu. Google documents what Google reads, so the example above follows Google; a site that wants to cover both can carry the same link under each name.

Hours that change: closed days, all-night hours and seasons

The hours block is where small businesses most often get the code right and the facts wrong, because the facts move. Google’s page gives specific patterns for the edge cases. A business open around the clock sets opens to 00:00 and closes to 23:59. A day the business is closed entirely gets 00:00 for both. Seasonal hours use validFrom and validThrough to bracket the dates, and the page uses them to describe a seasonal closure, which is how a beach-town ice cream stand that shuts for the winter would say so in code.

The hard part is not the syntax. It is that the same hours now live in at least three places: the sign on the door, the Google Business Profile, and this block of code. A printed menu, an online menu and a profile drifting apart is the problem laid out in the post on printing a menu that matches the online one, and structured data adds one more copy to keep in step. Google’s guidelines are blunt about the relationship between code and page: “Don’t mark up content that is not visible to readers of the page.” Hours in the code that differ from hours on the page break that rule, and they also tell a search engine two different stories about the same Saturday.

For a business with parts that keep different hours, such as a shop with a separate bakery counter, Google’s page describes a department property for each section “with its own distinct properties such as opening hours or telephone numbers,” and asks that each department name include the store name unless the department carries its own brand.

The review property and the stars that will not show

Google’s Restaurant example includes a review and, among the recommended properties, aggregateRating. An owner who copies the example, pastes in an average from a review site and waits for gold stars under the business name in search will be waiting a long time. Both properties carry the same note on Google’s page: “This property is only recommended for sites that capture reviews about other local businesses.”

The reason dates to a September 2019 post on Google’s webmaster blog, Making Review Rich Results more helpful. It defines the problem in one line: “We call reviews “self-serving” when a review about entity A is placed on the website of entity A.” Then it closes the door: “Self-serving reviews are no longer displayed for businesses and organizations,” applying to the LocalBusiness and Organization types and everything under them. A restaurant marking up its own reviews on its own site is the textbook case. The stars belong to sites that review other people’s restaurants.

A glass storefront door at night with a blank hours placard and the dining room lights off inside

Leaving the review lines out costs nothing. Putting them in with a made-up or copied average invites a different kind of trouble, because Google’s general guidelines describe a structured data manual action, under which “a page loses eligibility for appearance as a rich result.” The reviews belong on the Google profile, where answering them does real work, as covered in the comparison of Google Business Profile and Yelp for a restaurant.

What the code does, and how far down the list it ranks

Google’s page says what local business data can feed. When people search for a business on Search or Maps, “Search results may display a prominent Google knowledge panel with details about a business that matched the query,” and a search for a type of business may bring “a carousel of businesses related to the query.” The word doing the work is may. The general guidelines say it outright: “Google does not guarantee that your structured data will show up in search results.”

Now the harder part. Whitespark’s 2026 Local Search Ranking Factors report, published November 6, 2025 from a survey of 47 local search practitioners, puts “NAP in Schema/JSON-LD on GBP Landing Page URL” at rank 118 for the local map results, with a score of 73. The plain-text version of the same thing, “HTML NAP Matching GBP NAP,” sits at rank 15 with a score of 153. The people who work on local rankings every day think the visible name, address and phone on the page matter about twice as much as the hidden label on them.

That is a survey of opinion, not a controlled test. But it fits what the guidelines imply. The code describes the page; it does not replace it. A diner with a clean block of JSON-LD and a footer that lists an old phone number has labeled a box with the wrong contents, and the label is the easy part to fix. Schema is worth an hour for a small business with its own site. It is not worth more than the hour spent first making the name, address, phone and hours on the page itself correct and identical to the Google profile, the same point made in the post on building a one-page website.

Testing it before and after it goes live

Google’s page lays out the order. “Validate your code using the Rich Results Test and fix any critical errors.” Then “Deploy a few pages that include your structured data and use the URL Inspection tool to test how Google sees the page.” To keep Google up to date on later changes, it recommends a sitemap. And it warns that “it may take several days after publishing a page for Google to find and crawl it,” so the code will not show any effect the afternoon it goes in.

A plumber's tape measure and a cut gasket laid beside a pipe fitting on a workbench

The URL Inspection tool sits inside Search Console, which the post on setting up Google Search Console walks through. A website builder or SEO plugin may already be writing some markup on its own. Before adding a hand-written block, it is worth viewing the page source and searching for ld+json, because two blocks describing the same business with different hours is worse than one. Then the dull maintenance begins: every time the hours change on the door, they change in three places, and the code is the one nobody sees, which makes it the one most likely to be wrong next Thanksgiving.

For owners who have added it: did anything in the search results change, or did the code simply sit there doing its quiet work?

Sources