Structured data for local businesses
Updated 16 November 2026 · 4 min · Writer By RankLabs
Short answer
Structured data is a short piece of code on your website that tells Google what the business is called, where it is and when it is open. Visitors don’t see it, and it doesn’t change how the page looks. For a local business, Google only requires name and address, but phone, opening hours and web address should be included too. The code gives no guarantee that anything will look different in the search results.
What is structured data?
A person who reads “We’re open weekdays 8 to 17” understands straight away. A machine has to guess. Structured data is a standard way of writing the same details so they can’t be misunderstood. It is also called schema markup.
Google recommends the JSON-LD format. The code goes in the page’s code and can sit in either the head or the body.
This is what it can look like for a moving company. The business is made up:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "MovingCompany",
"name": "Exempelflytt",
"address": {
"@type": "PostalAddress",
"streetAddress": "Exempelgatan 1",
"postalCode": "123 45",
"addressLocality": "Stockholm",
"addressCountry": "SE"
},
"telephone": "+46 8 123 456 78",
"url": "https://www.exempelflytt.se",
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"opens": "08:00",
"closes": "17:00"
}
]
}
</script>Skip writing the code yourself. Fill in the business details and you get ready-made code to copy. It takes about 3 minutes.
Open Business MarkupWhat should be included?
| Detail | Google’s requirement | Comment |
|---|---|---|
| Company name | Required | The same name as on the site and in the business profile |
| Address | Required | As complete as possible: street, postcode, city and country |
| Phone | Recommended | With the country code |
| Web address | Recommended | The page that describes the business |
| Opening hours | Recommended | Days and times |
| Coordinates | Recommended | Latitude and longitude |
| Price range | Recommended | For example, a range of prices |
Company name
- Google’s requirement
- Required
- Comment
- The same name as on the site and in the business profile
Address
- Google’s requirement
- Required
- Comment
- As complete as possible: street, postcode, city and country
Phone
- Google’s requirement
- Recommended
- Comment
- With the country code
Web address
- Google’s requirement
- Recommended
- Comment
- The page that describes the business
Opening hours
- Google’s requirement
- Recommended
- Comment
- Days and times
Coordinates
- Google’s requirement
- Recommended
- Comment
- Latitude and longitude
Price range
- Google’s requirement
- Recommended
- Comment
- For example, a range of prices
Choose the most specific business type available. A moving company, for example, uses a type for moving companies instead of the general “LocalBusiness”.
Three rules from Google
- Only mark up what is visible on the page. The details in the code should also be in the text the visitor sees.
- Keep the details up to date. If the opening hours change, both the page and the code should change.
- Don’t make up reviews. Google says that ratings and reviews that don’t come from real users can lead to a manual action.
If the code breaks the rules, the page can lose the ability to appear with rich results. Google says this does not affect the page’s normal ranking.
Add it and test it
- Create the code, for example with Business Markup.
- Paste it into the page’s code, or ask whoever runs your website to do it.
- Test the page in Google’s Rich Results Test tool and fix any errors it shows.
Google does not guarantee that structured data appears in the search results. The code makes the details clear, but Google decides for itself what to show.
Frequently asked questions
Will I rank higher on Google with structured data?
There is no such guarantee. The code helps Google understand the details and can make them show more clearly, but Google promises nothing.
Does this code replace my Google Business Profile?
No. The profile controls the map pack. The code describes the business on your own website. The details should be the same in both places.
Can visitors see the code?
No. It sits in the page’s code and doesn’t change how the page looks.
I don’t have a visiting address. What do I write?
Google requires an address in the code. The documentation says nothing specific about businesses that travel to their customers, so ask whoever runs your website how it should be handled for you.
Would you like us to add the code for you?
Get a price proposal for your websiteReply within one working day.See what’s included and the price
Not ready yet? Create the code yourself firstSources
- Google Search Central: Local Business (LocalBusiness) Structured Data
- Google Search Central: Intro to How Structured Data Markup Works
- Google Search Central: General Structured Data Guidelines
All sources read 16 November 2026.
Draft: to be fact-checked before publishing