Local business schema: a setup guide with a working example
Add LocalBusiness JSON-LD with the right subtype, address, hours and phone, matching your Google Business Profile. A working example and mistakes to avoid.
By Sohail Hussain21 November 20265 min read
To add local business schema, write a JSON-LD block using the most specific LocalBusiness subtype for your business (Dentist, Restaurant, Electrician), include the two properties Google requires, name and address, add phone, URL, coordinates and opening hours, and place it on the page that describes that location. Every detail should match your Google Business Profile exactly. The local business schema generator builds the block from a form.
Set expectations first. Your Google Business Profile controls how you appear in Maps and the local pack. The markup describes the same business on your own website so Google can confirm it. It is an hour of work, not a ranking strategy, and it belongs alongside the other items in our technical SEO checklist.
What does LocalBusiness markup do, and what does it not do?
Google's LocalBusiness documentation says the markup can tell Google about business hours, departments and other details that may show in the knowledge panel when people search for your business. It is one of the supported features in Google's search gallery as of October 2026.
What it does not do:
- It does not create a Maps listing. That comes from a Google Business Profile.
- It does not produce stars from your own reviews. Google's review snippet guidelines allow ratings for LocalBusiness only on sites that capture reviews about other businesses. A review of your clinic on your clinic's website is "self-serving" and not eligible.
- It does not override what Google already knows. If your markup says one phone number and your profile, signage and directory listings say another, the markup loses.
So the value is consistency: one more source saying the same name, address, phone and hours. When we add it as part of technical SEO and performance work, the real job is checking that the details match everywhere; the code is the quick part.
How do you set it up, step by step?
- Pick the most specific subtype. Schema.org has hundreds:
Dentist,Restaurant,AutoRepair,AccountingService,Electrician. Google asks for the most specific one. If your business does several things, list them as an array, for example["Electrician", "Plumber"]. - Copy your details from your Business Profile. Name, address, phone and hours, character for character.
- Write the JSON-LD, with the properties in the table below.
- Place it on the page for that location. The homepage for a single-location business; each location page if there are several.
- Validate it in the Rich Results Test, then inspect the live URL in Search Console.
- Update it whenever the business changes, at the same time as the profile.
Which properties should you include?
| Property | Required by Google? | Notes |
|---|---|---|
name | Yes | The real-world business name, as on your signage and profile. No added keywords |
address | Yes | A PostalAddress with street, locality, region, postal code and country code |
telephone | Recommended | Include the country and area code, for example +91-20-... |
url | Recommended | The URL of this location's page, and it must work |
geo | Recommended | Latitude and longitude to at least five decimal places |
openingHoursSpecification | Recommended | One entry per set of days with the same hours |
priceRange | Recommended | Shorter than 100 characters, for example ₹₹ or a range |
image | Optional, used in Google's own example | A real photo of the business, not the logo |
sameAs | From Organization | Links to your official social profiles |
aggregateRating, review | Only for review sites | Not for reviews of your own business |
Because LocalBusiness is a subtype of Organization, Google recommends following its Organization guidance as well, so logo and sameAs belong here too.
What does a complete example look like?
This is a full, valid block for a fictional dental clinic in Pune:
{
"@context": "https://schema.org",
"@type": "Dentist",
"name": "Example Dental Care",
"url": "https://www.example.com/clinics/baner/",
"telephone": "+91-20-5555-0123",
"image": "https://www.example.com/images/baner-clinic.jpg",
"logo": "https://www.example.com/images/logo.png",
"priceRange": "₹₹",
"address": {
"@type": "PostalAddress",
"streetAddress": "2nd Floor, 14 Example Road, Baner",
"addressLocality": "Pune",
"addressRegion": "Maharashtra",
"postalCode": "411045",
"addressCountry": "IN"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 18.55901,
"longitude": 73.78681
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "10:00",
"closes": "19:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Saturday",
"opens": "10:00",
"closes": "14:00"
}
],
"sameAs": ["https://www.instagram.com/exampledentalcare"]
}
Wrap it in a script tag with type="application/ld+json" in the page's head or body. Sunday is left out because the clinic is closed; keep the hours identical to what the page and the profile show. For a seasonal closure, Google supports validFrom and validThrough dates on an opening hours entry; for one-off holidays, updating the special hours on your Business Profile is simpler.
Where does the markup go with several locations or no storefront?
One location. Put the block on the homepage, or on the contact page if that is where the address and map are. One block per site is enough.
Several locations. Give each location its own page with its own address, phone, hours, map and photos, and put one LocalBusiness block on each. Link the business profile for each branch to that page, not to the homepage. Keep a single Organization block on the homepage for the company as a whole.
Service-area businesses. Plumbers, cleaners and tutors who visit customers usually hide their address on their Business Profile. Google's documentation still lists address as required for the rich result. You can include the locality, region, postal code and country without the street, which matches what customers see. Schema.org also has an areaServed property for the places you cover; Google does not list it among the properties it uses, so treat it as a description rather than a lever. Local SEO for service businesses in India covers service-area setups in more detail.
How do you keep it accurate?
The markup goes wrong in the same way every time: someone changes the hours on the Business Profile, or moves office, and the website is updated weeks later or never. Three habits prevent it:
- Generate it from the CMS. Store the address, phone and hours once, in a settings page or location record, and render both the visible footer and the JSON-LD from that record.
- Check it with every profile change. If you edit hours on Google, edit them on the site the same day.
- Re-test after template changes. Run the Rich Results Test on a location page whenever the theme or page builder is updated.
Structured data: which types matter covers the other markup a business site should carry alongside this one.
Was this guide useful?