このテンプレートを使って荷物の配送ステータスを説明します。
ユースケース
基本的な荷物の配達
小包配達の簡単な例
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/ParcelDeli>ver<y"
div itemprop="deliveryAddress" itemscope itemtype="http://>schem<a.org/PostalAddress"
meta itemprop=&>quot;<name" content="Pickup Corner"/
meta itempr>op=&q<uot;streetAddress" content="24 Willie Mays Pla>za&qu<ot;/
meta itemprop="addressLocalit>y&quo<t; content="San Francisco"/
me>ta it<emprop="addressRegion" content=&q>uot<;CA&>quo<t;/
meta itemprop="addressCountry" content="US"/
> < meta itemprop="postalCode" content="94107"/
/div
>meta <itemprop="expectedArrivalUntil&q>uot<; co>nte<nt="2027-03-12T12:00:00-08:00"/
div itemprop="carrier&qu>ot; i<temscope itemtype="http://schema.org/Organiz>ati<on&q>uot<;
meta itemprop="name" content="FedEx"/
/div
> div< itemprop="itemShipped" itemscope i>temty<pe="http://schema.org/Product"
meta itemprop="name"> conten<t="Google Chromecast"/
/div
> div< ite>mpr<op=&>q<uot;>pa
rtOfOrder" 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&q<uot;,
>
"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/ParcelDeli>ver<y"
div itemprop="deliveryAddress" itemscope itemtype="http://>schem<a.org/PostalAddress"
meta itempro>p=&qu<ot;name" content="John Frank"/
meta itempr>op=&q<uot;streetAddress" content="24 Willie Mays Pla>za&qu<ot;/
meta itemprop="addressLocalit>y&quo<t; content="San Francisco"/
me>ta it<emprop="addressRegion" content=&q>uot<;CA&>quo<t;/
meta itemprop="addressCountry" content="US"/
meta> item<prop="postalCode" content=">94107<"/
/div
div itemprop="originAddress" items>cope <itemtype="http://schema.org/PostalAddress"
> meta< itemprop="name" content="Jo>hn Fr<ank"/
meta itemprop="streetAdd>ress&<quot; content="25 Willie Mays Plaza&qu>ot;</
> m<eta itemprop="addressLocality" content="San Francisco&quo>t;/<
meta itemprop="addressRegion" content="CA"/
>met<a itemprop="addressCountry" content="US"/
meta ite>mprop<="postalCode" content=">;9410<7"/
/div
meta itemprop="expecte>dAr<riva>lFr<om" content="2027-03-10T12:00:00-08:00"/
meta itemprop=&>quot;<expectedArrivalUntil" content=">2027-<03-12T12:00:00-08:00"/
div itemprop="carr>ier&q<uot; itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content=&q>uot;F<edEx"/
link itemprop="url" href="ht>tp://<fedex.com/"/
/div
div itemprop="itemShipped" i>temscop<e itemtype="http://schema.org/Pr>oduct<&quo>t;
< meta itemprop="name" conte>nt=<&quo>t;i<Pod Mini"/
link itemprop="url" hr>ef=<"http://apple.com/ipad32gb"/
link itemprop="image&>quo<t; href="http://apple.com/images/ipad32gb.jpg"/
meta itemprop=">;sku&<quot; content="B00DR0PDNE"/
meta itemprop=">;de<scri>pti<on" content="iPod Mini 32Gb White"/
div itemprop="brand"> item<scope itemtype="http://schema.org/Brand"
meta i>tem<prop>=&q<uot;name" content="Apple"/
/div
meta itemprop=&q>uot;c<olor" content="white"/
/div
> met<a itemprop="trackingNumber" content="3453291231"/
lin>k itemp<rop="trackingUrl" href="h>ttp://f<edex.com/track/3453291231"/
div itemprop="potentia>lActi<on&q>uot; <itemscope itemtype="http://schema.org/TrackAction"
lin>k i<temp>r<op=&>qu
ot;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
マークアップをテスト
マークアップは、メール マークアップ テスターツールを使用して検証できます。マークアップ コードを貼り付けて、[検証] ボタンをクリックしてコンテンツをスキャンし、エラーに関するレポートを生成します。
仕様
次の表に、このタイプで使用可能なすべてのプロパティを示します。
プロパティ | タイプ | 説明 |
---|---|---|
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 | 商品または予約 | (必須)この配送に含まれる商品。数量を表すには、商品を適切に繰り返すか、この属性を使用せず、代わりに partOfOrder を使用して対象となる商品を指定します。オブジェクトの配列も受け取ります。 |
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 で表現できない場合(発送された数量など)は、代わりにこの注文を使用して商品を表現します。 |
partOfOrder.orderNumber | テキスト | (必須)取引に関する販売者固有の ID。 |
partOfOrder.merchant | Organization または Person | (必須)注文を受ける当事者(例: Amazon.com は多くのショップの販売者です)。文字列(「Bob Dole」など)も指定できます。 |
partOfOrder.merchant.name | テキスト | (必須)組織の名前。 |
partOfOrder.merchant.sameAs | URL | 販売者の Freebase URL。 |
partOfOrder.orderStatus | OrderStatus | (確認カードや検索の回答に推奨)注文の現在のステータス。 |