In short
LocalBusiness describes a physical place where customers come, or a business that travels to them within a defined area: name, address, phone number, opening hours, GPS coordinates. You use it through the most specific subtype (Bakery, Dentist, Plumber, Hotel…). Once the check is done, every location page carries a JSON-LD block that matches the information displayed and the Google Business Profile listing.
Why it matters
Google documents LocalBusiness as a way to give it a business's opening hours, services and contact details, information it can use in the knowledge panel and in local search. Two properties are required: name and address. The others (telephone, openingHoursSpecification, geo, url, priceRange, servesCuisine, menu, department) are recommended.
The markup does not replace the Google Business Profile listing: the listing is what primarily feeds the local pack and Google Maps. The markup complements it on your own site, the source you control. When the site, the listing, Bing Places and directories give the same name, address and phone number, search engines and assistants that cross-check them have fewer reasons to doubt.
On the generative engine side, answers to local questions (“bakery open on Sunday in Lyon 2nd arrondissement”) rely on business data. No assistant vendor documents how it uses LocalBusiness markup, and Google states that no specific markup is required for its AI features. Accurate markup is still a source that can be read without ambiguity, with no guarantee of being recommended.
“If relevant”: the check only applies to businesses that receive the public or work in a geographic area (shops, restaurants, practices, tradespeople, agencies). A purely online business with no address that receives visitors uses Organization or OnlineStore (see Implement Organization and WebSite if appropriate (opens in a new tab)). The local SEO (opens in a new tab) module goes deeper into multi-location cases.
What it improves
- Accurate local information Opening hours, phone number and address readable by machines, from a source you control.
- NAP consistency (Name, Address, Phone) between the site and third-party listings, a criterion local SEO specialists track closely; Google has not quantified its effect on rankings.
- Local search and knowledge panel Eligible information, with no guarantee of display.
- Assistant answers Unambiguous business data. Indirect, unproven effect.
- Stars None. Google does not show stars for a
LocalBusinessthat marks up reviews it collects itself on its own site.
How to check
List the types on the location page (often the home page or the Contact page):
curl -s https://example.com/contact/ | grep -o '"@type" *: *"[A-Za-z]*"' | sort | uniq -c
Expected result: a type from the LocalBusiness family (Bakery, Restaurant, Dentist…), a PostalAddress, one or more OpeningHoursSpecification, a GeoCoordinates.
Then:
- Run the URL through the Rich Results Test: the local business item must appear, with no error on
nameoraddress. - Compare line by line with the Google Business Profile listing: name, address, phone number, opening hours. Any difference must be fixed on one side or the other.
- Paste the
geocoordinates into Google Maps: the pin must land on the entrance of the business.
How to implement
Before you start
Choose the most specific subtype in the LocalBusiness hierarchy: Bakery, Restaurant, Dentist, LegalService (which replaces the deprecated Attorney), Plumber, HairSalon, RealEstateAgent, Hotel… If two types apply, use an array (["Bakery", "CafeOrCoffeeShop"]); Google does not support additionalType. Avoid ProfessionalService, deprecated by schema.org.
One entity per location, on the page that presents it, with a url specific to that location. A single-location business can use the same object for the organization and the place: a single Bakery block with the @id https://example.com/#organization. A brand with several addresses keeps its Organization on the home page and links each location with parentOrganization (see Create one page per actual location (opens in a new tab)).
Format rules documented by Google:
| Property | Rule |
|---|---|
geo |
Latitude and longitude with at least 5 decimal places |
priceRange |
Text shorter than 100 characters (€€, 10-25 €) |
openingHoursSpecification |
Closed all day: opens and closes set to 00:00; open 24 hours: 00:00 to 23:59; past midnight: closing time earlier than opening time (18:00 to 03:00) |
| Seasonal hours | validFrom and validThrough in YYYY-MM-DD format |
menu |
Full URL, for restaurants |
department |
Nested business, named “{brand} {department}” |
Reference block for a single-address bakery:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Bakery",
"@id": "https://example.com/#organization",
"name": "Boulangerie Exemple",
"url": "https://example.com/",
"image": "https://example.com/images/facade.jpg",
"logo": "https://example.com/logo-512.png",
"telephone": "+33-4-00-00-00-00",
"priceRange": "€",
"address": {
"@type": "PostalAddress",
"streetAddress": "12 rue de l'Exemple",
"addressLocality": "Lyon",
"postalCode": "69002",
"addressCountry": "FR"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 45.75812,
"longitude": 4.83221
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
"opens": "07:00",
"closes": "19:30"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Sunday",
"opens": "07:00",
"closes": "13:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
"opens": "00:00",
"closes": "00:00",
"validFrom": "2026-08-03",
"validThrough": "2026-08-23"
}
],
"sameAs": [
"https://www.facebook.com/boulangerie.exemple",
"https://www.instagram.com/boulangerie.exemple"
]
}
</script>
The third opening hours block declares the summer closure. Monday is not declared; to state the closure explicitly, add a Monday block from 00:00 to 00:00. For one location of a brand, replace the @id with https://example.com/boutiques/lyon-2/#localbusiness and add "parentOrganization": { "@id": "https://example.com/#organization" }.
For a business that travels to its customers without receiving the public (plumber, home care), keep the head office address if it appears on the site and add areaServed with the cities or departments served, as in the Google Business Profile listing.
Warning: do not add
aggregateRatingorreviewwith reviews collected on your own site. Google reserves these properties for sites that publish reviews of other businesses and does not show stars for a business that controls the reviews about itself. See Implement Review/AggregateRating only if justified (opens in a new tab).
WordPress
Versions WordPress 6.4 to 7.1, Rank Math 1.0 (Local SEO module), Yoast SEO and Yoast Local SEO, November 2026.
Rank Math: Rank Math SEO > Titles & Meta > Local SEO. Choose “Organization”, then the business type (Business Type), the address with the two-letter ISO country code, the phone number, opening hours and their format, the price range and the GPS coordinates (latitude, longitude). Also select your About and Contact pages. Multiple locations (the “Use Multiple Locations” option) require the paid version: each address becomes an entry of the “RM Locations” post type. The Local Business block or the [rank_math_contact_info] shortcode displays the same contact details on the page.
Yoast SEO: the free plugin declares an Organization, not a LocalBusiness. The paid Yoast Local SEO add-on adds the business type, opening hours and multiple locations.
Without a plugin, add the reference block to a child theme's functions.php, restricting it to the right page:
add_action('wp_head', function (): void {
if (! is_page('contact')) {
return;
}
$business = [
'@context' => 'https://schema.org',
'@type' => 'Bakery',
'@id' => home_url('/#organization'),
'name' => 'Boulangerie Exemple',
'url' => home_url('/'),
'telephone' => '+33-4-00-00-00-00',
'address' => [
'@type' => 'PostalAddress',
'streetAddress' => '12 rue de l\'Exemple',
'addressLocality' => 'Lyon',
'postalCode' => '69002',
'addressCountry' => 'FR',
],
];
echo '<script type="application/ld+json">'
. wp_json_encode($business, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG)
. "</script>\n";
});
Make sure no other plugin already declares an Organization with the same @id and different values.
Shopify
Versions Online Store 2.0 themes, all Shopify plans, November 2026.
Shopify does not output LocalBusiness. For a store with a physical shop, create an “Our store” page (Online Store > Pages) with a dedicated template, then add the reference block in a custom Liquid section or in a snippet included only by that template:
{%- if page.handle == 'notre-boutique' -%}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Store",
"@id": {{ shop.url | append: '/pages/notre-boutique#localbusiness' | json }},
"name": {{ shop.name | json }},
"url": {{ shop.url | append: page.url | json }},
"telephone": "+33-4-00-00-00-00",
"address": {
"@type": "PostalAddress",
"streetAddress": "12 rue de l'Exemple",
"addressLocality": "Lyon",
"postalCode": "69002",
"addressCountry": "FR"
},
"parentOrganization": { "@id": {{ shop.url | append: '/#organization' | json }} }
}
</script>
{%- endif -%}
Complete it with the opening hours and geo from the reference block.
PrestaShop
Versions PrestaShop 8 and 9, Classic and Hummingbird themes.
The stores page (Shop Parameters > Contact > Stores) displays addresses and opening hours without LocalBusiness markup, with Classic as with Hummingbird (the default theme for new stores since PrestaShop 9.1). Add the JSON-LD in the templates/cms/stores.tpl template of a child theme, one entity per store, looping over the stores the template receives, then clear the cache.
Drupal
Versions Drupal 10 and 11, Metatag 2 and Schema.org Metatag 3 modules.
With Schema.org Metatag, the Schema.org Organization and Schema.org Place tabs let you choose the type and fill in the address, coordinates and opening hours with tokens; check in the type list that the subtype you want is offered, otherwise add the JSON-LD in the content type's Twig template. For several locations, create a “Location” content type with address, phone and opening hours fields, and configure its defaults in /admin/config/search/metatag. Clear the caches.
Wix
Versions Wix Editor and Wix Studio, dashboard as of November 2026.
First fill in the business details in the dashboard (Settings > Business Info). For the markup, open the Contact page in the editor, the page's SEO settings, Advanced SEO tab, structured data section, and add the reference block (7,000 characters maximum, five markups per page).
Squarespace
Versions Squarespace 7.1, Core, Plus and Advanced plans, November 2026.
Paste the reference block into the Contact page's code injection (page settings, Advanced), available depending on the plan. Then check with the Schema Markup Validator that the platform does not already declare a competing entity.
Webflow
Versions Webflow Designer, site plans with CMS, November 2026.
For a single location: Page settings > Custom code > Inside <head> tag of the Contact page. For several locations managed in a CMS collection, paste the block into the collection template's custom code and insert the fields (name, address, phone, latitude, longitude) with the add field button.
Laravel
Versions Laravel 11 to 13, spatie/schema-org 3.23.2 and later (4 and 5 included).
Store the locations in the database and build the block in each location's view:
use Spatie\SchemaOrg\Schema;
$schema = Schema::bakery()
->setProperty('@id', route('stores.show', $store) . '#localbusiness')
->name($store->name)
->url(route('stores.show', $store))
->telephone($store->phone)
->address(
Schema::postalAddress()
->streetAddress($store->street)
->addressLocality($store->city)
->postalCode($store->postal_code)
->addressCountry('FR')
)
->geo(Schema::geoCoordinates()->latitude($store->lat)->longitude($store->lng))
->setProperty('parentOrganization', ['@id' => url('/#organization')]);
In the view: {!! $schema->toScript() !!}. Generate the opening hours from the same table that feeds the display, so that the two never diverge.
Next.js
Versions Next.js 15 and 16 (App Router).
In app/boutiques/[slug]/page.tsx, build the object from the location data and render it in a <script type="application/ld+json"> tag, replacing < with < as the Next.js documentation recommends:
export default async function StorePage({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params;
const store = await getStore(slug);
const jsonLd = {
'@context': 'https://schema.org',
'@type': 'Bakery',
'@id': `https://example.com/boutiques/${store.slug}#localbusiness`,
name: store.name,
url: `https://example.com/boutiques/${store.slug}`,
telephone: store.phone,
address: { '@type': 'PostalAddress', ...store.address, addressCountry: 'FR' },
geo: { '@type': 'GeoCoordinates', latitude: store.lat, longitude: store.lng },
parentOrganization: { '@id': 'https://example.com/#organization' },
};
return (
<>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd).replace(/</g, '\\u003c') }}
/>
{/* location page content */}
</>
);
}
Common mistakes
- Opening hours in the markup that differ from those on the page or the Google listing: the most common case, after a change of hours entered in only one place.
- Generic
LocalBusinesstype when a specific subtype exists, or the deprecatedProfessionalService. - All locations marked up on the home page, with no page of their own and no distinct
url. - Approximate GPS coordinates: city center, or two decimal places instead of five.
- Self-awarded stars:
aggregateRatingcalculated from reviews collected on your own site. - Registered-office service address marked up for a business that does not receive customers there and does not display it.
- Forgotten special closures: holidays and public holidays not updated, even though assistants reuse these hours. See Enter regular and special hours (opens in a new tab).
Frequently asked questions
Does LocalBusiness markup replace Google Business Profile?
No. The Google Business Profile listing remains the main source for the local pack and Google Maps, and nothing replaces it. LocalBusiness markup describes the same business on your own site, with the same name, address, phone number and opening hours. The two complement each other: the listing for local visibility, the markup for an official source you control that search engines can cross-check.
Do you need LocalBusiness if the business does not receive customers?
Yes, if it works within a defined geographic area, like a plumber or a home service. Use the appropriate subtype, the head office address if it is published on the site, and the areaServed property for the towns served. A business that operates only online, with no premises open to customers and no service area, is better described with Organization or OnlineStore.
Can LocalBusiness markup display stars?
Not for your own reviews. Google states that the review and aggregateRating properties of LocalBusiness are only recommended for sites that publish reviews of other businesses. A business that marks up reviews it collects or selects itself on its site does not get stars. Google reviews from the Business Profile listing, on the other hand, display without markup, in local search and Maps.
How do you mark up several locations?
Create one page per actual location, with its address, opening hours and phone number visible, then place LocalBusiness markup of the appropriate subtype on each, with a url and an @id specific to that location. Link each location to the brand with the parentOrganization property, pointing to the @id of the organization declared on the home page. A page listing every address does not replace these individual pages.
Resources
- Google Search Central: local business structured datadevelopers.google.com
- Google Search Central: review snippets and self-serving reviewsdevelopers.google.com
- schema.org: LocalBusiness and its subtypesschema.org
- schema.org: OpeningHoursSpecificationschema.org
- Rank Math: Local SEO settingsrankmath.com
- Wix: adding structured data markup to your site's pagessupport.wix.com
Updated on
Topic checklist (PDF)