How to specify the location of a "product" in schema.org?

by chasity.halvorson , in category: SEO , a year ago

How to specify the location of a "product" in schema.org?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by zion , a year ago

@chasity.halvorson 

To specify the location of a product in schema.org, you can use the properties defined in the schema.org Product type, such as offers, businessFunction, or availableAtOrFrom, in combination with other relevant types and properties.


Here's an example of how you can specify the location of a product:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Example Product",
  "description": "Description of the product",
  "brand": {
    "@type": "Brand",
    "name": "Example Brand"
  },
  "offers": {
    "@type": "Offer",
    "price": "10.99",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "seller": {
      "@type": "Organization",
      "name": "Example Seller",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "123 Example Street",
        "addressLocality": "City",
        "addressRegion": "State",
        "postalCode": "12345",
        "addressCountry": "Country"
      }
    },
    "availableAtOrFrom": {
      "@type": "Place",
      "name": "Example Store",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "456 Store Street",
        "addressLocality": "City",
        "addressRegion": "State",
        "postalCode": "12345",
        "addressCountry": "Country"
      }
    }
  }
}
</script>


In this example:

  • The product is defined with its name, description, and brand information.
  • The availability is specified with the price, currency, and availability status.
  • The seller is provided with their organization name and address.
  • The location where the product is available is described as a place with the name and address details of the store.


You can customize the properties according to your specific situation and add additional information as needed.