Article
LocalBusiness structured data: a setup walkthrough
Short answer
Local business structured data is code on your site that tells Google, in a standardized format, facts like your business hours and departments (Google Search Central). To set it up, you add the required properties, any recommended ones that fit, and run the code through Google’s Rich Results Test before you ship it (Google Search Central).
The steps below follow Google’s doc in order.
What the markup can actually show
When people search for a business on Google Search or Maps, results may show a prominent knowledge panel with details about a matching business (Google Search Central). Search for a type of business (Google’s example is “best NYC restaurants”) and you may see a carousel of related businesses (Google Search Central). Booking or ordering straight from Search results is a separate thing: Google points to the Maps Booking API for that (Google Search Central). The restaurant carousel is also limited to a small set of restaurant providers (Google Search Central).
Note the word “may.” Google does not guarantee that features using structured data will show up in search results (Google Search Central). Our read: treat the markup as a way to make your facts unambiguous. It’s not a ticket to a panel.
Google’s doc doesn’t mention AI answers at all. Our read: nothing in this source says AI engines use the markup, so we won’t claim it.
Step 1: Pick the most specific type
Google says to use the most specific LocalBusiness sub-type possible, with examples like Restaurant, DaySpa and HealthClub (Google Search Central). If you have multiple types, list them as an array, because additionalType isn’t supported (Google Search Central). Google’s example for a business that offers multiple services is ["Electrician", "Plumber", "Locksmith"] (Google Search Central).
The full list of types lives at schema.org/LocalBusiness (Google Search Central). Our read: check that list before settling for plain LocalBusiness.
Step 2: Fill in the two required properties
name: the name of the business (Google Search Central).address: a PostalAddress for the physical location, and Google says to include as many properties as possible (Google Search Central). Its reasoning: “The more properties you provide, the higher quality the result is to users.” (Google Search Central)
Our read: fill in the address parts your country actually uses, and always include the country.
Step 3: Add the recommended properties that apply
These aren’t required, but Google says they add information and could provide a better user experience (Google Search Central). The ones most small businesses will reach for:
telephone: the primary customer contact number, with country code and area code (Google Search Central).url: the fully-qualified URL of that specific location, and it must be a working link (Google Search Central).geo.latitudeandgeo.longitude: precision must be at least 5 decimal places (Google Search Central).openingHoursSpecification: an array or a single object, both supported (Google Search Central).priceRange: a numerical range like $10-15 or currency signs like $$$ (Google Search Central). It must be shorter than 100 characters, or Google won’t show a price range (Google Search Central).menu: for food places, the fully-qualified URL of the menu (Google Search Central).servesCuisine: the type of cuisine a restaurant serves (Google Search Central).
One trap. The review and aggregateRating properties are only recommended for sites that capture reviews about other local businesses (Google Search Central). Our read: if you’re one business marking up your own site, leave both out.
Step 4: Write the JSON-LD
Here’s a trimmed version of Google’s JSON-LD listing example, which sits in a script tag in the page head (Google Search Central):
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Restaurant",
"name": "Dave's Steak House",
"address": {
"@type": "PostalAddress",
"streetAddress": "148 W 51st St",
"addressLocality": "New York",
"addressRegion": "NY",
"postalCode": "10019",
"addressCountry": "US"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 40.761293,
"longitude": -73.982294
},
"url": "https://www.example.com/restaurant-locations/manhattan",
"telephone": "+12122459600",
"servesCuisine": "American",
"priceRange": "$$$",
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday"],
"opens": "11:30",
"closes": "22:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Wednesday", "Thursday", "Friday"],
"opens": "11:30",
"closes": "23:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Saturday",
"opens": "16:00",
"closes": "23:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Sunday",
"opens": "16:00",
"closes": "22:00"
}
],
"menu": "https://www.example.com/menu"
}
</script>Swap in your own type, details and hours. Google’s example covers the full week, with one block for each group of days that share the same hours, so list every day you’re open. You can add it to any page, though Google says it may make more sense on a page that contains information about your business (Google Search Central).
Step 5: Get the opening hours patterns right
The patterns from Google’s doc:
| Regular hours | leaving out validFrom and validThrough means the hours are valid year-round (Google Search Central). |
|---|---|
| Past midnight | use a single OpeningHoursSpecification, for example Saturday with opens 18:00 and closes 03:00 (Google Search Central). |
| Open 24 hours | set opens to 00:00 and closes to 23:59 (Google Search Central). |
| Closed all day | set both opens and closes to 00:00 (Google Search Central). |
| Seasonal or holiday closures | add validFrom and validThrough (Google Search Central). Both take YYYY-MM-DD format (Google Search Central). |
Google’s holiday closure example looks like this (Google Search Central):
"openingHoursSpecification": {
"@type": "OpeningHoursSpecification",
"opens": "00:00",
"closes": "00:00",
"validFrom": "2015-12-23",
"validThrough": "2016-01-05"
}Small oddity: the property table describes opens and closes in hh:mm:ss format, while the examples use values like 09:00 (Google Search Central). Our read: both appear in Google’s own doc, so run the test either way and fix whatever it flags.
Step 6: Departments, if you have them
A business with departments that have their own hours or phone numbers can mark up each one with a department element (Google Search Central). Name them as store name plus department name, like gMart and gMart Pharmacy (Google Search Central). If the department is explicitly branded, use its name by itself (Google Search Central).
Step 7: Test, deploy, ask for a recrawl
Google’s release process:
- Validate with the Rich Results Test and fix critical errors (Google Search Central). Fixing non-critical issues can help quality but isn’t necessary to be eligible for rich results (Google Search Central).
- Deploy a few pages and use the URL Inspection tool to test how Google sees them (Google Search Central). The page must be accessible and not blocked by robots.txt, a noindex tag or login requirements (Google Search Central).
- If the page looks okay, ask Google to recrawl it (Google Search Central).
- Submit a sitemap so Google hears about future changes (Google Search Central).
Then be patient. It may take several days after publishing for Google to find and crawl a page (Google Search Central). Spammy markup problems may not be syntax issues, so the Rich Results Test won’t always catch them (Google Search Central). And if you get a structured data manual action, Google ignores the markup, though the page can still appear in Search (Google Search Central).
If a CMS or someone else runs your site, Google suggests asking them for help (Google Search Central).
Key takeaway
What to do next
Our read on a sensible order of operations:
- Find your most specific type on schema.org before writing a line of code.
- Gather your exact name, full address, phone with country code, location URL and hours in one document first. Copying from a single source beats retyping.
- Add your seasonal closures now, while you remember them.
- Test one page, check it in URL Inspection, then roll it out.
- Put a reminder in your calendar to update the markup whenever your hours change.
For how Be In GEO checks every claim it publishes, see how Be In GEO works.
Get the worksheet
Want to see which sites AI answers cite for the questions your customers ask? Grab the free worksheet at beingeo.com/checklist. You’ll also get short emails with each new teardown.