在微数据方案中使用多个地址(账单、访客、送货)
Using multiple addresses (billing, visitors, delivery) in microdata scheme
如何将以下内容转换为合适的微数据方案:
Company logo (imgtag)
Company name
Address: Example street 1, Postcode: 111111, City: Examplecity
Telephone: (+111)555-333-333
Email: person@example.com
BillingAddress: Example street 2, Postcode 22222, City: ExampleCity2
Deliveries: Example street 3, Postcode 33333, City: ExampleCity3
当我使用 LocalBusiness 和 PostalAdress 时,在针对 Google 测试 BillingAddress 时出现错误,说它不是 PostalAddress 的一部分,而且我只能在订单方案中找到 billingAddress,我很困惑.
也许 contactType 是您要查找的内容? http://schema.org/contactType - 您可以向组织添加多个地址并为它们指定不同的联系人类型...
Google 还在示例中使用 contactType 来添加不同的服务 phone 号码,请参阅本页示例:https://developers.google.com/search/docs/data-types/corporate-contacts
{
"@context": "http://schema.org",
"@type": "Organization",
"url": "http://www.your-company-site.com",
"contactPoint": [
{ "@type": "ContactPoint",
"telephone": "+1-401-555-1212",
"contactType": "customer service"
}
]
}
如何将以下内容转换为合适的微数据方案:
Company logo (imgtag)
Company name
Address: Example street 1, Postcode: 111111, City: Examplecity
Telephone: (+111)555-333-333
Email: person@example.com
BillingAddress: Example street 2, Postcode 22222, City: ExampleCity2
Deliveries: Example street 3, Postcode 33333, City: ExampleCity3
当我使用 LocalBusiness 和 PostalAdress 时,在针对 Google 测试 BillingAddress 时出现错误,说它不是 PostalAddress 的一部分,而且我只能在订单方案中找到 billingAddress,我很困惑.
也许 contactType 是您要查找的内容? http://schema.org/contactType - 您可以向组织添加多个地址并为它们指定不同的联系人类型...
Google 还在示例中使用 contactType 来添加不同的服务 phone 号码,请参阅本页示例:https://developers.google.com/search/docs/data-types/corporate-contacts
{
"@context": "http://schema.org",
"@type": "Organization",
"url": "http://www.your-company-site.com",
"contactPoint": [
{ "@type": "ContactPoint",
"telephone": "+1-401-555-1212",
"contactType": "customer service"
}
]
}