Check 19.19 · Local SEO

Implement LocalBusiness

Generate LocalBusiness markup for each location or service area, from a single data source, on WordPress, Shopify, Webflow, Drupal, Laravel or Next.js.

Priority
Critical
Difficulty
Intermediate
Estimated time
2 h to 1 day
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

In a local SEO project, LocalBusiness markup must describe each real location, on its own page, with exactly the information in its Google Business Profile: name, address or service area, phone number, opening hours, GPS coordinates. Once the task is done, the JSON-LD blocks are generated from the same source as the displayed pages, they stay accurate after every change of hours, and each location is linked to the organization that runs it.

The basics (subtypes, format rules, block for a single location) are covered in implement LocalBusiness if relevant (opens in a new tab). This guide deals with the cases specific to local SEO: multiple locations, service-area businesses and automatic generation.

Why it matters

Google's documentation asks you to define each location as a LocalBusiness entity, with two required properties (name and address) and a url pointing to the page of that specific location. A single block on the homepage mixing three addresses, or three blocks sharing the same url, describes no location correctly.

The real risk with local markup is not its absence, it is drift. Hours change, a phone number is replaced, a branch moves: if the JSON-LD is typed by hand into a template, it keeps the old values while the page and the Google profile show the new ones. Search engines and assistants that cross-check sources then find two contradictory versions.

The Google Business Profile remains the main source for the local pack and Google Maps. The markup describes the same reality on the website, the source you control. Google states that no special markup is required for its AI features, and no assistant vendor documents how it uses LocalBusiness: accurate markup reduces ambiguity, without guaranteeing a recommendation.

What it improves

  • Accuracy Machine-readable hours, address and phone number, identical to the page and the profile.
  • Multiple locations Each address is a distinct entity, linked to the brand by parentOrganization.
  • Maintenance A change entered once is carried over to the page, the markup and the export to the listings.
  • Local search Information eligible to be used by Google, with no guarantee it will be displayed. Effect on rankings not documented.
  • Assistant answers Unambiguous location data. Indirect effect, not proven.

How to check

For each location page, extract the phone number and hours from the markup:

for url in https://example.com/agences/nantes/ https://example.com/agences/angers/; do
  echo "== $url"
  curl -s "$url" | grep -o '"telephone" *: *"[^"]*"\|"opens" *: *"[^"]*"\|"closes" *: *"[^"]*"' | sort -u
done

Then:

  1. Run each URL through the Rich Results Test: no error on name or address. Also check the full syntax with the Schema Markup Validator.
  2. Check that each block has a url and an @id specific to the location, and a parentOrganization when there are several addresses.
  3. Compare with Google Business Profile line by line, one location at a time.

Compliant result: as many LocalBusiness blocks as real locations, one per page, with no discrepancy with the profile or with the visible text.

How to implement

Before you start

A single data source. Keep the list of locations in one place (database table, CMS content type, collection) and generate from it the page, the markup and, if possible, the imports to the listings. Fields to plan for:

Field Example schema.org property
Display name Boulangerie Exemple Lyon 2e name
Subtype Bakery @type
Address (street, postal code, city, country) 12 rue de l'Exemple, 69002 Lyon, FR address
Hidden address (yes/no) no controls whether streetAddress is output
Phone number in international format +33-4-00-00-00-00 telephone
Latitude, longitude (5 decimal places) 45.75812, 4.83221 geo
Hours per day Tue–Sat 07:00–19:30 openingHoursSpecification
Special closures 2026-12-25 openingHoursSpecification with validFrom and validThrough
Areas served Rezé, Saint-Herblain areaServed
Google Maps link to the profile Share URL of the profile hasMap (optional)

Fictional data. The choice between a visible address and a service area is covered in enter the address or service area (opens in a new tab).

The model for your case:

Situation Markup
A single location One block of the specific subtype, which also serves as the organization (@id https://example.com/#organization)
Several locations Organization on the homepage; one block per location page with its own @id and parentOrganization
Service-area business (hidden address) One block with city and postal code only, plus areaServed
Hybrid business Full address and areaServed

Block for one location of a chain:

{
  "@context": "https://schema.org",
  "@type": "Bakery",
  "@id": "https://example.com/boutiques/lyon-2/#localbusiness",
  "name": "Boulangerie Exemple Lyon 2e",
  "url": "https://example.com/boutiques/lyon-2/",
  "telephone": "+33-4-00-00-00-00",
  "image": "https://example.com/images/lyon-2-facade.jpg",
  "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": ["Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
      "opens": "00:00",
      "closes": "00:00",
      "validFrom": "2026-12-25",
      "validThrough": "2026-12-25"
    }
  ],
  "hasMap": "https://maps.app.goo.gl/EXEMPLE",
  "parentOrganization": { "@id": "https://example.com/#organization" }
}

Block for a service-area business, for Plomberie Garnier, a fictional plumbing company in Nantes that hides its owner's address:

{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "@id": "https://example.com/#organization",
  "name": "Plomberie Garnier",
  "url": "https://example.com/",
  "telephone": "+33-2-00-00-00-00",
  "address": {
    "@type": "PostalAddress",
    "addressLocality": "Nantes",
    "postalCode": "44000",
    "addressCountry": "FR"
  },
  "areaServed": [
    { "@type": "City", "name": "Nantes" },
    { "@type": "City", "name": "Rezé" },
    { "@type": "City", "name": "Saint-Herblain" }
  ]
}

Google requires address and asks you to include as much information as possible: when the address is hidden on the profile, stick to what the website displays publicly. hasMap is a schema.org property that Google's documentation does not mention; add it only if you keep the link up to date.

Warning: do not generate one LocalBusiness block per city served. A marked-up location must exist at the address given; a city served is declared in areaServed, not as a fake location.

WordPress

Versions WordPress 6.7 and later; Yoast Local SEO, Rank Math 1.0 (Pro for multiple locations).

Yoast Local SEO (paid add-on): it creates a “Locations” content type, one page per location with address, hours and map, and generates the LocalBusiness markup for each. Enable the multiple locations option in Yoast's Local SEO settings, fill in each location in the “Locations” menu, then disable any other local block entered by hand.

Rank Math: Rank Math SEO > Titles & Meta > Local SEO. The Pro version offers the “Use Multiple Locations” option: the single address fields disappear in favor of an “RM Locations” content type, and the “All Locations Are Part of the Same Organization” option adds parentOrganization to each location.

Without a plugin, register an etablissement content type (with ACF or register_post_type) whose fields follow the table above, then generate the block in the functions.php of a child theme:

add_action('wp_head', function (): void {
    if (! is_singular('etablissement')) {
        return;
    }

    $id = get_queried_object_id();
    $url = get_permalink($id);
    $hours = json_decode((string) get_post_meta($id, 'horaires_json', true), true) ?: [];

    $business = [
        '@context' => 'https://schema.org',
        '@type' => get_post_meta($id, 'sous_type', true) ?: 'LocalBusiness',
        '@id' => "{$url}#localbusiness",
        'name' => get_the_title($id),
        'url' => $url,
        'telephone' => get_post_meta($id, 'telephone', true),
        'address' => [
            '@type' => 'PostalAddress',
            'streetAddress' => get_post_meta($id, 'rue', true),
            'addressLocality' => get_post_meta($id, 'ville', true),
            'postalCode' => get_post_meta($id, 'code_postal', true),
            'addressCountry' => 'FR',
        ],
        'geo' => [
            '@type' => 'GeoCoordinates',
            'latitude' => (float) get_post_meta($id, 'latitude', true),
            'longitude' => (float) get_post_meta($id, 'longitude', true),
        ],
        'openingHoursSpecification' => $hours,
        'parentOrganization' => ['@id' => home_url('/#organization')],
    ];

    echo '<script type="application/ld+json">'
        . wp_json_encode($business, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG)
        . "</script>\n";
});

The horaires_json field holds the openingHoursSpecification array; use the same field to display the hours in the page template.

Shopify

Versions Shopify admin and Online Store 2.0 themes, all plans, November 2026.

Shopify does not generate LocalBusiness. Create a “Store” metaobject definition (Content > Metaobjects or Settings > Custom data, then “Add definition”) with the fields from the table, check “Web pages” in its features before saving, then add a custom Liquid section to this metaobject's template:

{%- assign store = metaobject -%}
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": {{ store.sous_type.value | default: 'Store' | json }},
  "@id": {{ request.origin | append: request.path | append: '#localbusiness' | json }},
  "name": {{ store.nom.value | json }},
  "url": {{ request.origin | append: request.path | json }},
  "telephone": {{ store.telephone.value | json }},
  "address": {
    "@type": "PostalAddress",
    "streetAddress": {{ store.rue.value | json }},
    "addressLocality": {{ store.ville.value | json }},
    "postalCode": {{ store.code_postal.value | json }},
    "addressCountry": "FR"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": {{ store.latitude.value | json }},
    "longitude": {{ store.longitude.value | json }}
  },
  "parentOrganization": { "@id": {{ shop.url | append: '/#organization' | json }} }
}
</script>

Entries are managed in Content > Metaobjects. Adapt the field keys (nom, rue…) to those of your definition.

Drupal

Versions Drupal 10 and 11; Metatag 2.x, Schema.org Metatag 3.x, Address 2.x.

Create a “Location” content type (/admin/structure/types/add) with address (Address module), phone, coordinates and hours fields. With Schema.org Metatag, configure the defaults for this type in /admin/config/search/metatag: Schema.org Place or Organization tab, subtype, address and coordinates as field tokens. If the subtype you need is not offered, output the JSON-LD in the node--etablissement.html.twig Twig template. Clear the caches (drush cr).

Webflow

Versions Webflow Designer, all plans (CMS collections from the CMS plan up), November 2026.

Create a “Locations” CMS collection with the fields from the table. In the collection template, Page settings > Custom code > Inside <head> tag, paste the reference block and replace each value with the matching field using the field insertion button. Publish, then test two or three pages of the collection.

Wix

Versions Wix Editor and Wix Studio, all plans, November 2026.

Wix does not generate one block per location from a list. For a few locations, create one page per address and paste each one's block into the page's SEO settings, in the structured data section (7,000 characters maximum per markup). Beyond that, a CMS collection with dynamic pages is safer; check the Wix help center for the markup options available for dynamic pages on your plan.

Laravel

Versions Laravel 10 to 13.

Store the locations and their hours in the database, and build the block in the model:

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class Location extends Model
{
    public function openingHours(): HasMany
    {
        return $this->hasMany(OpeningHour::class);
    }

    /** @return array<string, mixed> */
    public function toLocalBusinessSchema(): array
    {
        $url = route('locations.show', $this);

        return [
            '@context' => 'https://schema.org',
            '@type' => $this->schema_type,
            '@id' => "{$url}#localbusiness",
            'name' => $this->name,
            'url' => $url,
            'telephone' => $this->phone,
            'address' => [
                '@type' => 'PostalAddress',
                'streetAddress' => $this->street,
                'addressLocality' => $this->city,
                'postalCode' => $this->postal_code,
                'addressCountry' => 'FR',
            ],
            'geo' => [
                '@type' => 'GeoCoordinates',
                'latitude' => (float) $this->latitude,
                'longitude' => (float) $this->longitude,
            ],
            'openingHoursSpecification' => $this->openingHours
                ->map(fn (OpeningHour $hour): array => array_filter([
                    '@type' => 'OpeningHoursSpecification',
                    'dayOfWeek' => $hour->day_of_week,
                    'opens' => $hour->opens,
                    'closes' => $hour->closes,
                    'validFrom' => $hour->valid_from?->toDateString(),
                    'validThrough' => $hour->valid_through?->toDateString(),
                ]))
                ->values()
                ->all(),
            'parentOrganization' => ['@id' => url('/#organization')],
        ];
    }
}

In resources/views/locations/show.blade.php:

<script type="application/ld+json">
{!! json_encode($location->toLocalBusinessSchema(), JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG) !!}
</script>

The same openingHours relationship feeds the table of hours displayed in the view.

Next.js

Versions Next.js 15 and 16 (App Router).

Generate one page per location and its block from the same data, in app/agences/[slug]/page.tsx:

import { getLocation, getLocations } from '@/lib/locations';

export async function generateStaticParams() {
  const locations = await getLocations();

  return locations.map((location) => ({ slug: location.slug }));
}

export default async function LocationPage({ params }: { params: Promise<{ slug: string }> }) {
  const { slug } = await params;
  const location = await getLocation(slug);
  const url = `https://example.com/agences/${location.slug}/`;

  const jsonLd = {
    '@context': 'https://schema.org',
    '@type': location.schemaType,
    '@id': `${url}#localbusiness`,
    name: location.name,
    url,
    telephone: location.phone,
    address: { '@type': 'PostalAddress', ...location.address, addressCountry: 'FR' },
    geo: { '@type': 'GeoCoordinates', latitude: location.lat, longitude: location.lng },
    openingHoursSpecification: location.hours.map((hours) => ({
      '@type': 'OpeningHoursSpecification',
      ...hours,
    })),
    parentOrganization: { '@id': 'https://example.com/#organization' },
  };

  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd).replace(/</g, '\\u003c') }}
      />
      {/* location page content */}
    </>
  );
}

After a change of hours, regenerate the static pages (new build or revalidation): otherwise the markup keeps the old version.

Common mistakes

  • Markup typed by hand into the template while the hours come from another source: it drifts at the first change.
  • All locations on the homepage, with no page or url of their own.
  • One LocalBusiness per city served with no real location: that amounts to declaring fake places. See avoid artificially duplicated city pages (opens in a new tab).
  • Home street address in the markup when it is hidden on the profile and absent from the website.
  • Same @id for the organization and every location, which merges distinct entities.
  • Special closures forgotten: the markup announces a store open on December 25. See enter regular and special hours (opens in a new tab).
  • Two plugins marking up the same location with different values.

Frequently asked questions

Do you need LocalBusiness markup for each location?

Yes. Google asks you to define each location as a distinct LocalBusiness entity, with a url pointing to the page of that specific location. Create one page per real address, place on it a block of the appropriate subtype with its own @id, and link it to the brand with parentOrganization. A single block on the homepage listing every address describes none of the locations correctly.

How do you mark up a business with no premises that travels to its customers?

A service-area business, such as a plumber, uses a single LocalBusiness block of the appropriate subtype. The address remains required by Google: limit it to the city and postal code if the street is hidden on the Google Business Profile. Declare the municipalities served in areaServed. Do not create a fictitious location in every city where you work.

Must LocalBusiness markup match the Google Business Profile exactly?

Yes, the name, address, phone number and hours in the LocalBusiness markup must exactly match the Google Business Profile and the visible text of the page. The safest way is to generate the markup from the same data source as the page. A discrepancy, often after a change of hours, gives search engines and assistants two contradictory versions.

Does LocalBusiness markup improve rankings in Google Maps?

No direct effect is documented. According to Google, local ranking depends on relevance, distance and prominence, and the Google Business Profile remains the main source for Google Maps. LocalBusiness markup makes the website's information unambiguous and consistent with the profile. It is a useful complement, not a ranking lever.

Updated on

Topic checklist (PDF)

And now?

In the “Local SEO” topic

  1. Create or claim a Google Business Profile if eligible
  2. Get the listing verified
  3. Choose primary and secondary categories
  4. Enter the real business name
  5. Enter the address or service area
  6. Enter the phone number
  7. Enter regular and special hours
  8. Add relevant services and products
  9. Write an accurate description
  10. Add authentic photos
  11. Add website and booking links
  12. Add UTM parameters
  13. Collect authentic reviews without selective gating
  14. Respond to reviews
  15. Standardize name, address and phone number (NAP)
  16. Create one page per actual location
  17. Display contact details, directions and parking
  18. Add a map if useful
  19. Implement LocalBusiness
  20. Set up Bing Places and Apple Business Connect
  21. Check local and industry directories
  22. Build local backlinks
  23. Publish content specific to the areas served
  24. Avoid artificially duplicated city pages
  25. Track geolocated rankings
  26. Test local AI recommendations