Click here to see your recently viewed pages and most viewed pages.
Hide

schema.org examples for location pages

This page lists several location page schema.org examples, starting with a simple example and building up to more complex scenarios.

In the examples, we use the most specific subtype of schema.org/Organization, including schema.org/LocalBusiness and schema.org/Pharmacy. Our algorithms accept schema.org/Organization and all its sub-types and you should use the most relevant one for your business.

You can use the Structured Data Testing Tool to check that your markup is correct.

A standalone Restaurant with a menu

In this example, we describe some of the most useful information about the restaurant called the Fondue for Fun and Fantasy including its description, opening hours, telephone number, and menu.

Microdata

<div itemscope itemtype="http://schema.org/Restaurant">
  <h1 itemprop="name">Fondue for Fun and Fantasy</h1>
  <p itemprop="description">Fantastic and fun for all your cheesy occasions.</p>
  <p>Open: <time itemprop="openingHours" datetime="Mo,Tu,We,Th,Fr,Sa,Su 11:30-23:00">Daily from 11:30am till 11pm</time></p>
  <p>Phone: <span itemprop="telephone" content="+155501003333">555-0100-3333</span></p>
  <p>View <a itemprop="menu" href="http://example.com/menu">our menu</a>.</p>
</div>

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Restaurant",
  "name": "Fondue for Fun and Fantasy",
  "description": "Fantastic and fun for all your cheesy occasions",
  "openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 11:30-23:00",
  "telephone": "+155501003333",
  "menu": "http://example.com/menu"
}
</script>

RDFa

<div vocab="http://schema.org/" typeof="Restaurant">
  <h1 property="name">Fondue for Fun and Fantasy</h1>
  <p property="description">Fantastic and fun for all your cheesy occasions.</p>
  <p>Open: <time property="openingHours" datetime="Mo,Tu,We,Th,Fr,Sa,Su 11:30-23:00">Daily from 11:30am till 11pm</time></p>
  <p>Phone: <span property="telephone" content="+155501003333">555-0100-3333</span></p>
  <p>View <a property="menu" href="http://example.com/menu">our menu</a>.</p>
</div>

A store with holiday opening hours

In this example, we have a store that's typically open part of the day, with slightly different opening hours on certain days in the holiday season. We first specify the typical opening hours and then specify exceptions that apply on specific days.

Microdata

<div itemscope itemtype="http://schema.org/Store">
  <h1 itemprop="name">Middle of Nowhere Foods</h1>
  <h2>Opening hours</h2>
    <p>Normally open <time itemprop="openingHours" datetime="Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00">daily 9am-2pm</time> except on:</p>
  <ul>
    <li itemprop="openingHoursSpecification" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
      <span itemprop="validFrom" content="2013-12-24">24 December 2013</span> and
      <span itemprop="validThrough" content="2013-12-25">25 December 2013</span>:
      <span itemprop="opens" content="09:00">9am</span>-<span itemprop="closes" content="11:00">11am</span></li>
    <li itemprop="openingHoursSpecification" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
      <span itemprop="validFrom" content="2014-01-01">1st January 2014</span>
      <span itemprop="validThrough" content="2014-01-01"></span>:
      <span itemprop="opens" content="12:00">Noon</span>-<span itemprop="closes" content="14:00">2pm</span></li>
  </ul>
</div>

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Store",
  "name": "Middle of Nowhere Foods",
  "openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00",
  "openingHoursSpecification":
  { 
    "@type": "OpeningHoursSpecification",
    "validFrom": "2013-12-24",
    "validThrough": "2013-12-25",
    "opens": "12:00",
    "closes": "14:00"
  }
}
</script>

RDFa

<div vocab="http://schema.org" typeof="Store">
  <h1 property="name">Middle of Nowhere Foods</h1>
  <h2>Opening hours</h2>
  <p>Normally open <time property="openingHours" datetime="Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00">daily 9am-2pm</time> except on:</p>
  <ul>
    <li property="openingHoursSpecification"  typeof="OpeningHoursSpecification">
      <span property="validFrom" content="2013-12-24">24 December 2013</span> and
      <span property="validThrough" content="2013-12-25">25 December 2013</span>:
      <span property="opens" content="09:00">9am</span>-<span property="closes" content="11:00">11am</span>
    </li>
    <li property="openingHoursSpecification"  typeof="OpeningHoursSpecification">
      <span property="validFrom" content="2014-01-01">1st January 2014</span>
      <span property="validThrough" content="2014-01-01"></span>:
      <span property="opens" content="12:00">Noon</span>-<span property="closes" content="14:00">2pm</span>
    </li>
  </ul>
</div>

Notice how we specify the days that have different opening hours using the full year, month, and day format. This removes any ambiguity about when the opening hours exceptions apply.

A Pharmacy with opening hours and a contact phone number

Similar to the standalone restaurant example above, we'll now describe Philippa's Pharmacy that's open Monday to Thursday from 9am till noon. The markup could be:

Microdata

<div itemscope itemtype="http://schema.org/Pharmacy">
  <h1 itemprop="name">Philippa's Pharmacy</h1>
  <p itemprop="description">A superb collection of fine pharmaceuticals for your beauty and healthcare convenience,
    a department of Delia's Drugstore.</p>
  <p>Open: <time itemprop="openingHours" datetime="Mo,Tu,We,Th 09:00-12:00">Monday-Thursday 9am-noon</time></p>
  <p>Phone: <span itemprop="telephone" content="+18005551234">(800)555-1234</span></p>
</div>

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Pharmacy",
  "name": "Philippa's Pharmacy",
  "description": "A superb collection of fine pharmaceuticals for your beauty and healthcare convenience, a department of Delia's Drugstore.",
  "openingHours": "Mo,Tu,We,Th 09:00-12:00",
  "telephone": "+18005551234"
}
</script>

RDFa

  <div vocab="http://schema.org/" typeof="Pharmacy">
    <h1 property="name">Philippa's Pharmacy</h1>
    <p property="description">A superb collection of fine pharmaceuticals for your beauty and healthcare convenience, a department of Delia's Drugstore.</p>
    <p>Open: <time property="openingHours" datetime="Mo,Tu,We,Th 09:00-12:00">Monday-Thursday 9am-noon</time></p>
    <p>Phone: <span property="telephone" content="+18005551234">(800)555-1234</span></p>
  </div>

Pharmacy as a department of a larger store

Often a pharmacy is a department of a larger store, with each having its own opening hours, description and contact information. In this example, we describe a Store, called Delia's Daily Supplies, with its own properties, and specify a department of the Store to describe the Pharmacy's properties.

Microdata

<div itemscope itemtype="http://schema.org/Store">
  <div>
    <h1 itemprop="name">Delia's Daily Supplies</h1>
    <p itemprop="description">For your daily newspapers, candies, snacks and (via our in-store pharmacy)
      drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.</p>
    <p>Open: <time itemprop="openingHours" datetime="Mo-Fr 07:00-23:00">Monday-Friday 7am-11pm </time></p>
    <p>Phone: <span itemprop="telephone" content="+1 8005551234">800-555-1234</span></p>
  </div>

  <div itemprop="department" itemscope itemtype="http://schema.org/Pharmacy">
    <h2 itemprop="name">Philippa's Pharmacy</h2>
    <p itemprop="description">A superb collection of fine pharmaceuticals for your beauty and healthcare needs,
      a department of Delia's Drugstore. Call our desk to speak to the on-duty pharmacist any morning Monday-Thursday.</p>
    <p>Open: <time itemprop="openingHours" datetime="Mo-Th 09:00-12:00">Monday-Thursday 9am-noon</time></p>
    <p>Phone: <span itemprop="telephone" content="+155501001111">555-0100-1111</span></p>
  </div>
</div>

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Store",
  "name": "Delia's Daily Supplies",
  "description": "For your daily newspapers, candies, snacks and (via our in-store pharmacy) drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.",
  "openingHours": "Mo-Fr 07:00-23:00",
  "telephone": "+155501001110",
  "department":
  { 
    "@type": "Pharmacy",
    "name": "Philippa's Pharmacy",
    "description": "A superb collection of fine pharmaceuticals for your   beauty and healthcare needs, a department of Delia's Drugstore. Call our desk to speak to the on-duty pharmacist any morning Monday-Thursday.",
    "openingHours": "Mo-Th 09:00-12:00",
    "telephone": "+155501001111"
  }
}
</script>

RDFa

<div vocab="http://schema.org/" typeof="Store">
  <div>
      <h1 property="name">Delia's Daily Supplies</h1>
      <p property="description">For your daily newspapers, candies, snacks and (via our in-store pharmacy)
          drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.</p>
      <p>Open: <time property="openingHours" datetime="Mo-Fr 07:00-23:00">Monday-Friday 7am-11pm </time></p>
      <p>Phone: <span property="telephone" content="+1 8005551234">800-555-1234</span></p>
  </div>

  <div property="department" typeof="Pharmacy">
      <h2 property="name">Philippa's Pharmacy</h2>
      <p property="description">A superb collection of fine pharmaceuticals for your beauty and healthcare needs,
          a department of Delia's Drugstore. Call our desk to speak to the on-duty pharmacist any morning Monday-Thursday.</p>
      <p>Open: <time property="openingHours" datetime="Mo-Th 09:00-12:00">Monday-Thursday 9am-noon</time></p>
      <p>Phone: <span property="telephone" content="+155501001111">555-0100-1111</span></p>
  </div>
</div>

Notice that the opening hours for the Pharmacy department are different from the main Store, and this markup allows Google's algorithms, and other systems that support schema.org markup, to correctly associate the opening hours to each.

Specifying multiple departments and branches of chains

Many large stores offer a variety of specialized services, which we can represent using the 'department' property. Let's add another department to our fictional Store: a dry cleaning service.

In this example, we also introduce two new ideas:

  • The different departments and the store have different phone numbers.
  • The dry cleaning department is actually a branch of a chain of dry cleaners; it just so happens this branch is within our large Store.

The markup would be:

Microdata

<div itemscope itemtype="http://schema.org/Store">
  <div>
    <h1 itemprop="name">Delia's Daily Supplies</h1>
    <p itemprop="description">For your daily newspapers, candies, snacks and (via our in-store pharmacy)
      drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.</p>
    <p>Open: <time itemprop="openingHours" datetime="Mo-Fr 07:00-23:00">Monday-Friday 7am-11pm </time></p>
    <p>Phone: <span itemprop="telephone" content="+155501001110">555-0100-1110</span></p>
  </div>

  <div itemprop="department" itemscope itemtype="http://schema.org/Pharmacy">
    <h2 itemprop="name">Philippa's Pharmacy</h2>
    <p itemprop="description">A superb collection of fine pharmaceuticals for your beauty and healthcare needs,
      a department of Delia's Drugstore. Call our desk to speak to the on-duty pharmacist any morning Monday-Thursday.</p>
    <p>Open: <time itemprop="openingHours" datetime="Mo-Th 09:00-12:00">Monday-Thursday 9am-noon</time></p>
    <p>Phone: <span itemprop="telephone" content="+155501001111">555-0100-1111</span></p>
  </div>

  <!-- another department -->
  <div itemprop="department" itemscope itemtype="http://schema.org/DryCleaningOrLaundry">
    <h2 itemprop="name">Larry's Laundromat</h2>
    <p itemprop="description">Keep your clothes clean while you do your daily shopping!</p>
    <p>Open: <time itemprop="openingHours" datetime="Mo-Fr 13:00-17:30">Open weekdays 1pm-5:30pm.</time></p>
    <p>Phone: <span itemprop="telephone" content="+155501002121">555-0100-2121</span></p>
    <p>A branch of <span itemprop="branchOf" itemscope itemtype="http://schema.org/Corporation">
    <a itemprop="url" href="http://example.com/"><span itemprop="name">Larry's International</span></a>.</p>
  </div>
</div>

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Store",
  "name": "Delia's Daily Supplies",
  "description": "For your daily newspapers, candies, snacks and (via our in-store pharmacy) drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.",
  "openingHours": "Mo-Fr 07:00-23:00",
  "telephone": "+155501001110",
  "department":
  [
    {
      "@type": "Pharmacy",
      "name": "Philippa's Pharmacy",
      "description": "A superb collection of fine pharmaceuticals for your   beauty and healthcare needs, a department of Delia's Drugstore. Call our desk to speak to the on-duty pharmacist any morning Monday-Thursday.",
      "openingHours": "Mo-Th 09:00-12:00",
      "telephone": "+155501001111"
    },
    {
      "@type": "DryCleaningOrLaundry",
      "name": "Larry's Laundromat",
      "description": "Keep your clothes clean while you do your daily shopping!",
      "openingHours": "Mo-Fr 13:00-17:30",
      "telephone": "+155501002121",
      "branchOf":
      {
        "@type": "Corporation",
        "url": "http://example.com/",
        "name": "Larry's International"
      }
    }
  ]
}
</script>

RDFa

<div  vocab="http://schema.org/" typeof="Store">
  <div>
    <h1 property="name">Delia's Daily Supplies</h1>
    <p property="description">For your daily newspapers, candies, snacks and (via our in-store pharmacy)
        drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.</p>
    <p>Open: <time property="openingHours" datetime="Mo-Fr 07:00-23:00">Monday-Friday 7am-11pm </time></p>
    <p>Phone: <span property="telephone" content="+155501001110">555-0100-1110</span></p>
  </div>

  <div property="department" typeof="Pharmacy">
    <h2 property="name">Philippa's Pharmacy</h2>
    <p property="description">A superb collection of fine pharmaceuticals for your beauty and healthcare needs,
        a department of Delia's Drugstore. Call our desk to speak to the on-duty pharmacist any morning Monday-Thursday.</p>
    <p>Open: <time property="openingHours" datetime="Mo-Th 09:00-12:00">Monday-Thursday 9am-noon</time></p>
    <p>Phone: <span property="telephone" content="+155501001111">555-0100-1111</span></p>
  </div>

  <div property="department" typeof="DryCleaningOrLaundry">
    <h2 property="name">Larry's Laundromat</h2>
    <p property="description">Keep your clothes clean while you do your daily shopping!</p>
    <p>Open: <time property="openingHours" datetime="Mo-Fr 13:00-17:30">Open weekdays 1pm-5:30pm.</time></p>
    <p>Phone: <span property="telephone" content="+155501002121">555-0100-2121</span></p>
    <p>A branch of <span property="branchOf" typeof="Corporation">
    <a property="url" href="http://example.com/"><span property="name">Larry's International</span></a>.</p>
  </div>
</div>

Specifying addresses

Let's now look at how to specify the address of local businesses and their departments.

For many businesses, a department's address is the main store's address and we specify the address only for local business. To continue our example:

Microdata

<div itemscope itemtype="http://schema.org/Store">
  <div>
    <h1 itemprop="name">Delia's Daily Supplies</h1>
    <p itemprop="description">For your daily newspapers, candies, snacks and (via our in-store pharmacy)
      drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.</p>
    <p>Open: <time itemprop="openingHours" datetime="Mo-Fr 07:00-23:00">Monday-Friday 7am-11pm </time></p>
    <p>Phone: <span itemprop="telephone" content="+155501001110">555-0100-1110</span></p>
  </div>

  <address itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
    <span itemprop="streetAddress"> Unit 42, Land of Bargains Shopping Paradise, 12 Highway 101</span>,
    <span itemprop="addressLocality">Boston</span>,
    <span itemprop="addressRegion">MA</span>, <span itemprop="addressCountry">USA</span>
  </address>

 <div itemprop="department" itemscope itemtype="http://schema.org/Pharmacy">
   <h2 itemprop="name">Philippa's Pharmacy</h2>
   <p itemprop="description">A superb collection of fine pharmaceuticals...</p>
   <p>Open: <time itemprop="openingHours" datetime="Mo-Th 09:00-12:00">Monday-Thursday 9am-noon</time></p>
   <p>Phone: <span itemprop="telephone" content="+155501001111">555-0100-1111</span></p>
 </div>
</div>

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Store",
  "name": "Delia's Daily Supplies",
  "description": "For your daily newspapers, candies, snacks and (via our in-store pharmacy) drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.",
  "openingHours": "Mo-Fr 07:00-23:00",
  "telephone": "+155501001110",
  "address":
  {
  "@type": "PostalAddress",
  "streetAddress": "Unit 42, Land of Bargains Shopping Paradise, 12 Highway 101",
  "addressLocality": "Boston",
  "addressRegion": "MA",
  "addressCountry": "USA"
  },
  "department":
  {
    "@type": "Pharmacy",
    "name": "Philippa's Pharmacy",
    "description": "A superb collection of fine pharmaceuticals for your   beauty and healthcare needs, a department of Delia's Drugstore. Call our desk to speak to the on-duty pharmacist any morning Monday-Thursday.",
    "openingHours": "Mo-Th 09:00-12:00",
    "telephone": "+155501001111"
    }
}
</script>

RDFa

<div vocab="http://schema.org/" typeof="Store">
  <div>
    <h1 property="name">Delia's Daily Supplies</h1>
    <p property="description">For your daily newspapers, candies, snacks and (via our in-store pharmacy)
    drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.</p>
    <p>Open: <time property="openingHours" datetime="Mo-Fr 07:00-23:00">Monday-Friday 7am-11pm </time></p>
    <p>Phone: <span property="telephone" content="+155501001110">555-0100-1110</span></p>
  </div>

  <address property="address"  typeof="PostalAddress">
    <span property="streetAddress"> Unit 42, Land of Bargains Shopping Paradise, 12 Highway 101</span>,
    <span property="addressLocality">Boston</span>,
    <span property="addressRegion">MA</span>, <span property="addressCountry">USA</span>
  </address>

  <div property="department"  typeof="Pharmacy">
    <h2 property="name">Philippa's Pharmacy</h2>
    <p property="description">A superb collection of fine pharmaceuticals...</p>
    <p>Open: <time property="openingHours" datetime="Mo-Th 09:00-12:00">Monday-Thursday 9am-noon</time></p>
    <p>Phone: <span property="telephone" content="+155501001111">555-0100-1111</span></p>
  </div>
</div>

You can also specify different addresses for each department if necessary using the same syntax as the example above. For example, here we specify a different address for the Store and Department:

Microdata

<div itemscope itemtype="http://schema.org/Store">
  <div>
    <h1 itemprop="name">Delia's Daily Supplies</h1>
    <p itemprop="description">For your daily newspapers, candies, snacks and (via our in-store pharmacy)
      drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.</p>
    <p>Open: <time itemprop="openingHours" datetime="Mo-Fr 07:00-23:00">Monday-Friday 7am-11pm </time></p>
    <p>Phone: <span itemprop="telephone" content="+155501001110">555-0100-1110</span></p>
  </div>

  <address itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
    <span itemprop="streetAddress">Unit 42, Land of Bargains Shopping Paradise, 12 Highway 101</span>,
    <span itemprop="addressLocality">Boston</span>,
    <span itemprop="addressRegion">MA</span>, <span itemprop="addressCountry">USA</span>
  </address>

  <div itemprop="department" itemscope itemtype="http://schema.org/Pharmacy">
    <h2 itemprop="name">Philippa's Pharmacy</h2>
    <p itemprop="description">A superb collection of fine pharmaceuticals...</p>
    <p>Open: <time itemprop="openingHours" datetime="Mo-Th 09:00-12:00">Monday-Thursday 9am-noon</time></p>
    <p>Phone: <span itemprop="telephone" content="+155501001111">555-0100-1111</span></p>
    <address itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
      <span itemprop="streetAddress">Unit 42b, Land of Bargains Shopping Paradise, 12 Highway 101</span>,
      <span itemprop="addressLocality">Boston</span>,
      <span itemprop="addressRegion">MA</span>, <span itemprop="addressCountry">USA</span>
    </address>
  </div>
</div>

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Store",
  "name": "Delia's Daily Supplies",
  "description": "For your daily newspapers, candies, snacks and (via our in-store pharmacy) drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.",
  "openingHours": "Mo-Fr 07:00-23:00",
  "telephone": "+155501001110",
  "address":
  {
  "@type": "PostalAddress",
  "streetAddress": "Unit 42, Land of Bargains Shopping Paradise, 12 Highway 101",
  "addressLocality": "Boston",
  "addressRegion": "MA",
  "addressCountry": "USA"
  },
  "department":
  {
    "@type": "Pharmacy",
    "name": "Philippa's Pharmacy",
    "description": "A superb collection of fine pharmaceuticals for your   beauty and healthcare needs, a department of Delia's Drugstore. Call our desk to speak to the on-duty pharmacist any morning Monday-Thursday.",
    "openingHours": "Mo-Th 09:00-12:00",
    "telephone": "+155501001111",
    "address":
    {
      "@type": "PostalAddress",
      "streetAddress": "Unit 42b, Land of Bargains Shopping Paradise, 12 Highway 101",
      "addressLocality": "Boston",
      "addressRegion": "MA",
      "addressCountry": "USA"
    }
  }
}
</script>

RDFa

<div vocab="http://schema.org/" typeof="Store">
  <div>
    <h1 property="name">Delia's Daily Supplies</h1>
    <p property="description">For your daily newspapers, candies, snacks and (via our in-store pharmacy)
    drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.</p>
    <p>Open: <time property="openingHours" datetime="Mo-Fr 07:00-23:00">Monday-Friday 7am-11pm </time></p>
    <p>Phone: <span property="telephone" content="+155501001110">555-0100-1110</span></p>
  </div>

  <address property="address"  typeof="PostalAddress">
    <span property="streetAddress">Unit 42, Land of Bargains Shopping Paradise, 12 Highway 101</span>,
    <span property="addressLocality">Boston</span>,
    <span property="addressRegion">MA</span>, <span property="addressCountry">USA</span>
  </address>

  <div property="department"  typeof="Pharmacy">
    <h2 property="name">Philippa's Pharmacy</h2>
    <p property="description">A superb collection of fine pharmaceuticals...</p>
    <p>Open: <time property="openingHours" datetime="Mo-Th 09:00-12:00">Monday-Thursday 9am-noon</time></p>
    <p>Phone: <span property="telephone" content="+155501001111">555-0100-1111</span></p>
    <address property="address"  typeof="PostalAddress">
      <span property="streetAddress">Unit 42b, Land of Bargains Shopping Paradise, 12 Highway 101</span>,
      <span property="addressLocality">Boston</span>,
      <span property="addressRegion">MA</span>, <span property="addressCountry">USA</span>
    </address>
  </div>
</div>