このテンプレートを使用して、荷物の配送状況を説明します。
ユースケース
Basic Parcel Delivery
荷物配送の最小限の例
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "ParcelDelivery",
"deliveryAddress": {
"@type": "PostalAddress",
"name": "Pickup Corner",
"streetAddress": "24 Willie Mays Plaza",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"addressCountry": "US",
"postalCode": "94107"
},
"expectedArrivalUntil": "2027-03-12T12:00:00-08:00",
"carrier": {
"@type": "Organization",
"name": "FedEx"
},
"itemShipped": {
"@type": "Product",
"name": "Google Chromecast"
},
"partOfOrder": {
"@type": "Order",
"orderNumber": "176057",
"merchant": {
"@type": "Organization",
"name": "Bob Dole"
}
}
}
</script>
microdata
<div itemscope itemtype="http://schema.org/ParcelDelivery">
<div itemprop="deliveryAddress" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="name" content="Pickup Corner"/>
<meta itemprop="streetAddress" content="24 Willie Mays Plaza"/>
<meta itemprop="addressLocality" content="San Francisco"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="addressCountry" content="US"/>
<meta itemprop="postalCode" content="94107"/>
</div>
<meta itemprop="expectedArrivalUntil" content="2027-03-12T12:00:00-08:00"/>
<div itemprop="carrier" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="FedEx"/>
</div>
<div itemprop="itemShipped" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="Google Chromecast"/>
</div>
<div itemprop="partOfOrder" itemscope itemtype="http://schema.org/Order">
<meta itemprop="orderNumber" content="176057"/>
<div itemprop="merchant" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Bob Dole"/>
</div>
</div>
</div>
配送情報を含む小包配送
配送に関する詳細情報が記載された荷物の配送の例
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "ParcelDelivery",
"deliveryAddress": {
"@type": "PostalAddress",
"name": "John Frank",
"streetAddress": "24 Willie Mays Plaza",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"addressCountry": "US",
"postalCode": "94107"
},
"originAddress": {
"@type": "PostalAddress",
"name": "John Frank",
"streetAddress": "25 Willie Mays Plaza",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"addressCountry": "US",
"postalCode": "94107"
},
"expectedArrivalFrom": "2027-03-10T12:00:00-08:00",
"expectedArrivalUntil": "2027-03-12T12:00:00-08:00",
"carrier": {
"@type": "Organization",
"name": "FedEx",
"url": "http://fedex.com/"
},
"itemShipped": {
"@type": "Product",
"name": "iPod Mini",
"url": "http://apple.com/ipad32gb",
"image": "http://apple.com/images/ipad32gb.jpg",
"sku": "B00DR0PDNE",
"description": "iPod Mini 32Gb White",
"brand": {
"@type": "Brand",
"name": "Apple"
},
"color": "white"
},
"trackingNumber": "3453291231",
"trackingUrl": "http://fedex.com/track/3453291231",
"potentialAction": {
"@type": "TrackAction",
"url": "http://fedex.com/track/3453291231"
},
"hasDeliveryMethod": {
"@type": "ParcelService",
"name": "http://schema.org/ParcelService"
},
"partOfOrder": {
"@type": "Order",
"orderNumber": "176057",
"merchant": {
"@type": "Organization",
"name": "Bob Dole",
"sameAs": "http://www.freebase.com/m/0fhkx"
},
"orderStatus": "http://schema.org/OrderInTransit"
}
}
</script>
microdata
<div itemscope itemtype="http://schema.org/ParcelDelivery">
<div itemprop="deliveryAddress" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="name" content="John Frank"/>
<meta itemprop="streetAddress" content="24 Willie Mays Plaza"/>
<meta itemprop="addressLocality" content="San Francisco"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="addressCountry" content="US"/>
<meta itemprop="postalCode" content="94107"/>
</div>
<div itemprop="originAddress" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="name" content="John Frank"/>
<meta itemprop="streetAddress" content="25 Willie Mays Plaza"/>
<meta itemprop="addressLocality" content="San Francisco"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="addressCountry" content="US"/>
<meta itemprop="postalCode" content="94107"/>
</div>
<meta itemprop="expectedArrivalFrom" content="2027-03-10T12:00:00-08:00"/>
<meta itemprop="expectedArrivalUntil" content="2027-03-12T12:00:00-08:00"/>
<div itemprop="carrier" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="FedEx"/>
<link itemprop="url" href="http://fedex.com/"/>
</div>
<div itemprop="itemShipped" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="iPod Mini"/>
<link itemprop="url" href="http://apple.com/ipad32gb"/>
<link itemprop="image" href="http://apple.com/images/ipad32gb.jpg"/>
<meta itemprop="sku" content="B00DR0PDNE"/>
<meta itemprop="description" content="iPod Mini 32Gb White"/>
<div itemprop="brand" itemscope itemtype="http://schema.org/Brand">
<meta itemprop="name" content="Apple"/>
</div>
<meta itemprop="color" content="white"/>
</div>
<meta itemprop="trackingNumber" content="3453291231"/>
<link itemprop="trackingUrl" href="http://fedex.com/track/3453291231"/>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/TrackAction">
<link itemprop="url" href="http://fedex.com/track/3453291231"/>
</div>
<div itemprop="hasDeliveryMethod" itemscope itemtype="http://schema.org/ParcelService">
<meta itemprop="name" content="http://schema.org/ParcelService"/>
</div>
<div itemprop="partOfOrder" itemscope itemtype="http://schema.org/Order">
<meta itemprop="orderNumber" content="176057"/>
<div itemprop="merchant" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Bob Dole"/>
<link itemprop="sameAs" href="http://www.freebase.com/m/0fhkx"/>
</div>
<link itemprop="orderStatus" href="http://schema.org/OrderInTransit"/>
</div>
</div>
マークアップをテスト
Email マークアップ テスターツールを使用して、マークアップを検証できます。マークアップ コードを貼り付け、[検証] ボタンをクリックしてコンテンツをスキャンし、エラーに関するレポートを受け取ります。
仕様
次の表に、このタイプで使用可能なすべてのプロパティを示します。
| プロパティ | タイプ | 説明 |
|---|---|---|
| deliveryAddress | PostalAddress | (必須)宛先アドレス。 |
| deliveryAddress.name | テキスト | PostalAddress の名前。 |
| deliveryAddress.streetAddress | テキスト | (必須)番地。(例: 1600 Amphitheatre Pkwy)。 |
| deliveryAddress.addressLocality | テキスト | (必須)地域。(例: Mountain View)。 |
| deliveryAddress.addressRegion | テキスト | (必須)リージョン。たとえば、CA です。 |
| deliveryAddress.addressCountry | テキストまたは国 | (必須)国。たとえば、USA。2 文字の ISO 3166-1 alpha-2 国コードを指定することもできます。 |
| deliveryAddress.postalCode | テキスト | (必須)郵便番号。例: 94043 |
| 元のアドレス | PostalAddress | 配送業者の住所。 |
| originAddress.name | テキスト | PostalAddress の名前。 |
| originAddress.streetAddress | テキスト | 番地。(例: 1600 Amphitheatre Pkwy)。 |
| originAddress.addressLocality | テキスト | 地名。(例: Mountain View)。 |
| originAddress.addressRegion | テキスト | 地域。たとえば、CA です。 |
| originAddress.addressCountry | テキストまたは国 | 国。たとえば、USA。2 文字の ISO 3166-1 alpha-2 国コードを指定することもできます。 |
| originAddress.postalCode | テキスト | 郵便番号。例: 94043 |
| expectedArrivalFrom | DateTime | 荷物が配達される予定の最も早い日付。 |
| expectedArrivalUntil | DateTime | (必須)荷物が到着する予定の最終日。 |
| 携帯通信会社 | 組織 | (必須)荷物の配送を担当する当事者。文字列(「FedEx」など)も使用できます。 |
| carrier.name | テキスト | (必須)組織の名前。 |
| carrier.url | URL | 組織の URL。 |
| itemShipped | Product または Reservation | (必須)この配送に含まれる商品。数量を表すには、Product を適切に繰り返すか、この属性を使用せずに、代わりに partOfOrder を使用して、どの Product が含まれているかを表します。オブジェクトの配列も受け入れます。 |
| itemShipped.name | テキスト | (必須)商品の名前。 |
| itemShipped.url | URL | (確認カード/検索回答に推奨)商品の URL。通常は販売者のウェブサイトの商品ランディング ページ。 |
| itemShipped.image | URL | (確認カード/検索回答に推奨)商品の画像の URL。通常は販売者のウェブサイト上の画像です。 |
| itemShipped.sku | テキスト | (確認カード/検索回答に推奨)最小管理単位(SKU)。つまり、販売者が商品やサービス、または特典が参照する商品に割り当てた固有の識別子。 |
| itemShipped.description | テキスト | プロダクトの簡単な説明。 |
| itemShipped.brand | ブランド | 商品に関連付けられているブランド。 |
| itemShipped.brand.name | テキスト | ブランド名。 |
| itemShipped.color | テキスト | 商品の色。 |
| trackingNumber | テキスト | (確認カード/検索回答に推奨)配送業者の荷物追跡番号。 |
| trackingUrl | URL | (確認カード/検索回答に推奨)荷物を追跡できるウェブページ。 |
| hasDeliveryMethod | DeliveryMethod | 配信に使用されるメソッド。 |
| deliveryStatus | DeliveryEvent | 荷物が配送の各段階(発送から最終配達まで)を経るたびに、新しいエントリが追加されます。特に、受け取り型の配送(店舗、ロッカーなど)に役立ちます。 |
| partOfOrder | 注文 | (必須)発送される注文の詳細。発送に含まれる商品に関する詳細(発送された数量など)を itemShipped で表現できない場合は、この Order を使用して商品を表現します。 |
| partOfOrder.orderNumber | テキスト | (必須)取引の販売者固有の識別子。 |
| partOfOrder.merchant | Organization または Person | (必須)注文を受ける当事者(例: Amazon.com は多くの販売者の販売者です)。文字列(「Bob Dole」など)も指定できます。 |
| partOfOrder.merchant.name | テキスト | (必須)組織の名前。 |
| partOfOrder.merchant.sameAs | URL | 販売者の Freebase URL。 |
| partOfOrder.orderStatus | OrderStatus | (確認カード/検索回答に推奨)注文の現在のステータス。 |