LocalBusiness schema
LocalBusiness schema is structured data for a business with a physical location: its name, address, phone number, opening hours and map position.
Why it matters
Section titled “Why it matters”It gives Google exact, consistent details about where you are and when you’re open, which supports how you appear in local search and on Google Maps.
What to include
Section titled “What to include”nameandaddress: requiredtelephone: with the country code, for example +61 3 0000 0000url: the page for this locationopeningHoursSpecification: your opening hoursgeo: latitude and longitudepriceRange: for example $$
Use the most specific type that fits, such as Plumber, Dentist, AutoRepair or Restaurant, instead of plain LocalBusiness. The details must match your Google Business Profile exactly.
If you have several locations, add the schema to each location’s own page.
How to add it
Section titled “How to add it”| Platform | How |
|---|---|
| WordPress (Rank Math) | Go to Rank Math > Titles & Meta > Local SEO, choose Local Business, and fill in your address, phone and hours. |
| WordPress (Yoast SEO) | Local business schema needs the paid Yoast Local SEO add-on, or add the code below with a code snippets plugin. |
| Squarespace | Fill in your business details under business information in Settings. Run the test below to check what’s output. |
| Shopify, Wix | Run the test below first. If it’s missing, add the code below through the platform’s custom code or structured data setting. |
| Custom-built site | Ask your developer to add the code below to the location page’s <head>. |
Example code, with your own details swapped in:
<script type="application/ld+json">{ "@context": "https://schema.org", "@type": "Plumber", "name": "Example Plumbing", "url": "https://www.example.com.au/", "telephone": "+61 3 0000 0000", "priceRange": "$$", "address": { "@type": "PostalAddress", "streetAddress": "1 Example Street", "addressLocality": "Geelong", "addressRegion": "VIC", "postalCode": "3220", "addressCountry": "AU" }, "openingHoursSpecification": [{ "@type": "OpeningHoursSpecification", "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"], "opens": "07:00", "closes": "17:00" }]}</script>Check it worked
Section titled “Check it worked”Paste the page address into Google’s Rich Results Test. It should list Local Business with no errors.
Google’s guide
Section titled “Google’s guide”Local Business structured data (Google Search Central)

