以下是三个不同类型房源的JSON-LD示例,包括住宅公寓、商业办公空间和土地/地块。
1. 住宅公寓(Apartment)¶
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Apartment",
"name": "北京市朝阳区高端三居室公寓",
"description": "这套位于北京市朝阳区的高端三居室公寓,面积为120平方米,配备现代化厨房和宽敞的客厅。靠近地铁站,交通便利,周边配套设施齐全,包括购物中心、学校和公园。",
"image": [
"https://www.example.com/images/apartment1.jpg",
"https://www.example.com/images/apartment2.jpg",
"https://www.example.com/images/apartment3.jpg"
],
"offers": {
"@type": "Offer",
"price": "4500000",
"priceCurrency": "CNY",
"availability": "https://schema.org/InStock",
"url": "https://www.example.com/properties/beijing-chaoyang-apartment"
},
"address": {
"@type": "PostalAddress",
"streetAddress": "朝阳区建国路123号",
"addressLocality": "北京市",
"addressRegion": "北京市",
"postalCode": "100022",
"addressCountry": "CN"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": "39.913818",
"longitude": "116.363625"
},
"numberOfRooms": "3",
"floorSize": {
"@type": "QuantitativeValue",
"value": "120",
"unitCode": "MTR"
},
"seller": {
"@type": "RealEstateAgent",
"name": "北京优质房产中介",
"url": "https://www.example.com",
"telephone": "+86-10-12345678",
"address": {
"@type": "PostalAddress",
"streetAddress": "北京市海淀区中关村大街1号",
"addressLocality": "北京市",
"addressRegion": "北京市",
"postalCode": "100080",
"addressCountry": "CN"
}
}
}
</script>
说明¶
@type:
Apartment
表示这是一个公寓类型的房源。offers: 包含价格、货币类型、可用性以及房源详情页的URL。
address 和 geo: 提供详细的地址和地理坐标。
seller: 房产中介的详细信息,包括名称、联系方式和地址。
2. 商业办公空间(OfficeSpace)¶
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "OfficeSpace",
"name": "上海浦东新区现代化办公空间",
"description": "这处位于上海浦东新区的现代化办公空间,面积为500平方米,配备高端办公设备和会议室。周边交通便利,靠近地铁站和商业中心,适合各类企业入驻。",
"image": [
"https://www.example.com/images/office1.jpg",
"https://www.example.com/images/office2.jpg",
"https://www.example.com/images/office3.jpg"
],
"offers": {
"@type": "Offer",
"price": "1500000",
"priceCurrency": "CNY",
"availability": "https://schema.org/InStock",
"url": "https://www.example.com/properties/shanghai-pudong-office"
},
"address": {
"@type": "PostalAddress",
"streetAddress": "浦东新区陆家嘴环路88号",
"addressLocality": "上海市",
"addressRegion": "上海市",
"postalCode": "200120",
"addressCountry": "CN"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": "31.230416",
"longitude": "121.473701"
},
"floorSize": {
"@type": "QuantitativeValue",
"value": "500",
"unitCode": "MTR"
},
"seller": {
"@type": "RealEstateAgent",
"name": "上海优质房产中介",
"url": "https://www.example.com",
"telephone": "+86-21-87654321",
"address": {
"@type": "PostalAddress",
"streetAddress": "上海市静安区南京西路456号",
"addressLocality": "上海市",
"addressRegion": "上海市",
"postalCode": "200040",
"addressCountry": "CN"
}
}
}
</script>
说明¶
@type:
OfficeSpace
表示这是一个办公空间类型的房源。offers: 包含租金、货币类型、可用性以及房源详情页的URL。
address 和 geo: 提供详细的地址和地理坐标。
seller: 房产中介的详细信息,包括名称、联系方式和地址。
3. 土地/地块(LandUse)¶
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LandUse",
"name": "深圳南山区商业用地",
"description": "这块位于深圳南山区的商业用地,面积为10000平方米,适合开发大型商业综合体或办公楼。地理位置优越,靠近主要交通干道和商业中心,具备极高的投资价值。",
"image": [
"https://www.example.com/images/land1.jpg",
"https://www.example.com/images/land2.jpg",
"https://www.example.com/images/land3.jpg"
],
"offers": {
"@type": "Offer",
"price": "50000000",
"priceCurrency": "CNY",
"availability": "https://schema.org/InStock",
"url": "https://www.example.com/properties/shenzhen-nanshan-land"
},
"address": {
"@type": "PostalAddress",
"streetAddress": "南山区科技南十二路789号",
"addressLocality": "深圳市",
"addressRegion": "广东省",
"postalCode": "518000",
"addressCountry": "CN"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": "22.5355",
"longitude": "113.9362"
},
"landArea": {
"@type": "QuantitativeValue",
"value": "10000",
"unitCode": "MTR"
},
"seller": {
"@type": "RealEstateAgent",
"name": "深圳优质房产中介",
"url": "https://www.example.com",
"telephone": "+86-755-12345678",
"address": {
"@type": "PostalAddress",
"streetAddress": "深圳市福田区深南大道1000号",
"addressLocality": "深圳市",
"addressRegion": "广东省",
"postalCode": "518033",
"addressCountry": "CN"
}
}
}
</script>
说明¶
@type:
LandUse
表示这是一个土地/地块类型的房源。offers: 包含售价、货币类型、可用性以及房源详情页的URL。
address 和 geo: 提供详细的地址和地理坐标。
landArea: 土地面积。
seller: 房产中介的详细信息,包括名称、联系方式和地址。
总结¶
通过在房产中介网站中添加上述JSON-LD结构化数据,可以达到下面的效果:
提升SEO效果:搜索引擎能够更准确地理解和展示房源信息,增加网站的可见性。
改善用户体验:在搜索结果中展示丰富的房源信息,如价格、地址、图片等,吸引潜在客户点击。
标准化数据:遵循Schema.org标准,使数据更具一致性和可读性。
最佳实践¶
确保数据准确性:定期更新JSON-LD数据,确保房源信息的准确和最新。
使用高质量图片:提供清晰、专业的房源图片,提升吸引力。
丰富的属性:根据实际情况,添加更多相关属性,如
numberOfBathrooms
、amenityFeature
等,提供更全面的房源信息。验证结构化数据:使用Google结构化数据测试工具或结构化数据校验工具验证JSON-LD代码,确保其正确无误。