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?

  1. 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"].
  2. Copy your details from your Business Profile. Name, address, phone and hours, character for character.
  3. Write the JSON-LD, with the properties in the table below.
  4. Place it on the page for that location. The homepage for a single-location business; each location page if there are several.
  5. Validate it in the Rich Results Test, then inspect the live URL in Search Console.
  6. Update it whenever the business changes, at the same time as the profile.

Which properties should you include?

PropertyRequired by Google?Notes
nameYesThe real-world business name, as on your signage and profile. No added keywords
addressYesA PostalAddress with street, locality, region, postal code and country code
telephoneRecommendedInclude the country and area code, for example +91-20-...
urlRecommendedThe URL of this location's page, and it must work
geoRecommendedLatitude and longitude to at least five decimal places
openingHoursSpecificationRecommendedOne entry per set of days with the same hours
priceRangeRecommendedShorter than 100 characters, for example ₹₹ or a range
imageOptional, used in Google's own exampleA real photo of the business, not the logo
sameAsFrom OrganizationLinks to your official social profiles
aggregateRating, reviewOnly for review sitesNot 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:

json
{
  "@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?

Questions

Frequently asked.

Do I need LocalBusiness schema if I have a Google Business Profile?

The profile matters more, because it drives your Maps and local pack listing. The markup is a small addition that describes the same business on your own site in a form Google can read. It takes an hour to add, so it is worth doing, but it is not a substitute for a complete profile.

Can I show star ratings from my Google reviews with this markup?

No. Google does not show review stars for LocalBusiness or Organization markup when the reviews are about your own business and published on your own site. The rating and review properties are only for sites that collect reviews about other businesses.

Which subtype should a business with no exact match use?

Use the closest specific type on schema.org, such as ProfessionalService or HomeAndConstructionBusiness, and only fall back to LocalBusiness if nothing fits. Google allows several types as an array when a business genuinely does more than one thing, for example an electrician who is also a plumber.

Sohail Hussain

Founder, MSH Technologies

Sohail has designed and built websites, web apps and AI products for over 12 years, for clients from Singapore-based industrial groups to early-stage SaaS startups. He writes about what actually worked.

Keep reading

Related guides.

All posts

Your next move

Like what you see? Tell us about it.

A process that takes too long, a website that undersells you, or an idea ready to take shape. Tell us where you are and we will suggest a useful next step.

India · Working with clients worldwide

Sohail, Founder, replies within 1 working day (Mon–Sat, IST). Free and no obligation.