Skip to content

LocalBusiness schema

LocalBusiness schema is structured data for a business with a physical location: its name, address, phone number, opening hours and map position.

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.

  • name and address: required
  • telephone: with the country code, for example +61 3 0000 0000
  • url: the page for this location
  • openingHoursSpecification: your opening hours
  • geo: latitude and longitude
  • priceRange: 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.

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>

Paste the page address into Google’s Rich Results Test. It should list Local Business with no errors.

Local Business structured data (Google Search Central)