如果您的交货包含多个跟踪号,那么hat是Parcel Delivery架构的正确结构吗?

时间:2015-07-02 02:57:36

标签: schema.org

我们的订单可能包含多个SKU以及订单中每个SKU的多个跟踪号。

我一直在引用https://developers.google.com/gmail/markup/reference/parcel-delivery。我们也使用JSON-LD格式。

{  
   "@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":"2013-03-10T12:00:00-08:00",
  "expectedArrivalUntil":"2013-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",
     "target":"http://fedex.com/track/3453291231"
  },
  "hasDeliveryMethod":"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"
  }

}

我在SO上检查了之前的问题,似乎无法在谷歌或其官方文档或schema.org中找到答案。任何建议将不胜感激。干杯。

1 个答案:

答案 0 :(得分:0)

如果我错了,请纠正我,但经过一些研究后我很确定你只需要为订单中的每个包裹复制相同的json片段。如果你没有使用JSON-LD,这就是它的工作方式,所以它的工作原理是相同的。干杯。