AI & Search

LocalBusiness schema markup: what to include, a template and how to test it

What to put in LocalBusiness schema, a JSON-LD template with placeholder details, how service-area businesses should handle it and how to test.

The short answer

LocalBusiness schema is a block of structured data, usually JSON-LD, that states your business's name, address, phone, hours and website in a form machines read directly. Google requires only name and address, and recommends hours, phone, URL and more. Add it to your homepage or contact page, match it to the visible text, and test it.

What LocalBusiness schema is

Schema.org defines LocalBusiness as a physical place of business or a single branch of a larger organisation. It sits under Organization and Place, so it inherits fields from both. Specific subtypes exist, such as Dentist, Store and FoodEstablishment, and using the closest one is better than the generic type.

Structured data does not rank you by itself. Google says its AI features need no special schema, and it advises that structured data should match the visible page text. Its value is clarity: the page states facts in a way software cannot misread. See also our wider guide on schema markup for AI search.

What to include

Google's local business documentation lists the following.

  • Required: name and address (a PostalAddress with as many parts as you can fill).
  • Recommended: openingHoursSpecification, geo (latitude and longitude with at least five decimal places), telephone, url, priceRange and department.
  • Organization fields are also recommended, because LocalBusiness is a subtype of Organization.
  • Reviews: include review and aggregateRating only if your site collects reviews of other local businesses. Do not mark up your own reviews of yourself.

Schema.org also offers areaServed for the region you serve and sameAs for links that identify the business elsewhere.

See what Local SEO & Google Business Profile would cost for your business

Answer a few questions about your project and budget and get a personalised plan, compared with typical market prices.

Book a free 15-min callAbout 3 minutes · no obligation · fixed price confirmed in writing

A worked example

This is a generic template. Every value is a placeholder you must replace with your own real details, and nothing here describes a real business.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "name": "Example Business Name",
  "url": "https://www.example.ca/",
  "telephone": "your-number-here",
  "email": "info@example.ca",
  "image": "https://www.example.ca/images/storefront.jpg",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Example Street",
    "addressLocality": "Example City",
    "addressRegion": "ON",
    "postalCode": "A1A 1A1",
    "addressCountry": "CA"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 43.00000,
    "longitude": -79.00000
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "08:00:00",
      "closes": "17:00:00"
    }
  ],
  "areaServed": ["Example City", "Neighbouring Town"],
  "sameAs": [
    "https://www.facebook.com/example-page",
    "https://www.linkedin.com/company/example-company"
  ]
}
</script>

Change "Plumber" to the closest schema.org subtype for your trade, or use LocalBusiness if none fits. Use the same business name, phone and address that appear in your footer and on your Business Profile.

Service-area businesses

If you travel to customers and do not want to publish a street address, be careful. Google's Business Profile rules tell service-area businesses to hide their address on the profile. Google's local business markup guide does not discuss service-area businesses, so we cannot cite a rule for whether to omit the address from schema. The cautious approach is to publish only an address you already show publicly on your site, and to state your coverage with areaServed. Keep the schema consistent with what the page shows.

How to test it

  1. Run the page through Google's Rich Results Test and fix critical errors first.
  2. Deploy, then use URL Inspection in Search Console to confirm Google can fetch the page and nothing blocks it.
  3. Allow several days for recrawling, and request a recrawl if needed.
  4. Re-test whenever you change hours, phone or address.

Mistakes to avoid: copying markup from another business, leaving the example address in place, marking up hours that differ from the page, and using review markup for testimonials you wrote yourself. Our SEO service includes a schema check, and you can start with a free website check-up.

Common questions about the template

The email, image and areaServed lines are optional. Remove any property you cannot fill truthfully rather than leaving a placeholder behind. The geo values must be real coordinates for your location, with at least five decimal places per Google. For opening hours, a second object can cover Saturday, and a date-limited entry using validFrom and validThrough can cover seasonal changes. If your hours vary by department, Google's guide supports a department property with its own details. Keep the whole block short and accurate: three correct properties beat twenty doubtful ones.

Key takeaways

  • Google requires name and address for LocalBusiness markup and recommends hours, phone, URL and more.
  • Use the most specific schema.org subtype that fits your trade.
  • Keep markup identical to visible page text and your Business Profile.
  • Test with the Rich Results Test, then confirm indexing with URL Inspection.

Frequently asked questions

Does LocalBusiness schema improve rankings?

Google does not present it as a ranking factor. It helps Google understand your business details and may make you eligible for certain features. For AI features specifically, Google says no special schema is needed, so see it as good housekeeping.

Do I need JSON-LD?

Google's examples use JSON-LD, but its guide does not say it is mandatory. JSON-LD is the easiest to maintain because it sits in one block rather than being woven through the page.

Where do I put the code?

In the page's head or body of the page it describes, typically the homepage or contact page. WordPress and Shopify sites often handle this through a plugin or theme setting. Check the output with the Rich Results Test rather than trusting the plugin.

Should I add schema for every page?

No. Put the business-level markup on the homepage or contact page, and use other types, such as Service or FAQPage, only where a page genuinely contains that content.

Sources

  1. Local business structured data — Google Search Central documentation
  2. LocalBusiness — Schema.org
  3. AI features and your website — Google Search Central documentation
  4. Guidelines for representing your business on Google — Google Business Profile Help

How Flowmatix can help

We put this into practice for businesses in Toronto and around the world through our Local SEO & Google Business Profile, seo & performance optimization services. Want to know what it would take for your business? Get a personalised quote in about 3 minutes, or request a free website check-up.

Let's talk

Got a project in mind?

Book a free 15-minute strategy call. We talk through what you need, then you get a fixed price in writing before any work starts. No sales script.