Skip to content

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:

Example: Made-up business
<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 Markup

What should be included?

DetailGoogle’s requirementComment
Company nameRequiredThe same name as on the site and in the business profile
AddressRequiredAs complete as possible: street, postcode, city and country
PhoneRecommendedWith the country code
Web addressRecommendedThe page that describes the business
Opening hoursRecommendedDays and times
CoordinatesRecommendedLatitude and longitude
Price rangeRecommendedFor 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

  1. Only mark up what is visible on the page. The details in the code should also be in the text the visitor sees.
  2. Keep the details up to date. If the opening hours change, both the page and the code should change.
  3. 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

  1. Create the code, for example with Business Markup.
  2. Paste it into the page’s code, or ask whoever runs your website to do it.
  3. 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.

We use necessary cookies to make the site work. With your consent, we also use cookies for statistics and marketing. You can change your choice at any time under Cookies in the footer.

Privacy policy