{{#and item.latitude item.longitude}}
{{/and}}{{#if item.primaryImage }}
{{/if}}{{#if singleFamilyResidence}} <script type="application/ld+json"> {{#if item.listing.openHouse}}[{{/if}} { "@context":"https://schema.org", "@type":"SingleFamilyResidence", "address": { "@type": "PostalAddress", "@context":"https://schema.org", "streetAddress": "{{item.address.fullStreetAddress}}", "addressLocality": "{{item.address.city}}", "addressRegion": "{{item.address.state}}", "addressCountry": "USA", "postalCode": "{{item.address.zip}}" }, {{#if item.primaryImage}} "photo": { "@type": "ImageObject", "url": "{{item.primaryImage.large}}" }, {{/if}} "geo": { "@type": "GeoCoordinates", "latitude": "{{item.longitude}}", "longitude": "{{item.longitude}}" }, "description": "{{item.remarks}}", "name": "{{item.address.fullStreetAddress}}, {{item.address.cityStateZip}}", "url": "{{@root/data/siteRootUrl}}{{item.url}}" } {{#if item.listing.openHouse}} ,{ "@context": "https://schema.org", "@type": "Event", "name": "Open House {{item.listing.openHouse.times}}", "description": "{{item.remarks}}", "url": "{{@root/data/siteRootUrl}}{{item.url}}", {{#if item.primaryImage}} "image": [ {{#if item.primaryImage.large}}"{{item.primaryImage.large}}"{{/if}} {{#each item.secondaryImages}} ,"{{listing}}" {{/each}} ], {{/if}} "startDate": "{{item.listing.openHouse.startDateString}}", {{#if item.price}} "offers": { "@type": "Offer", "@id": "{{@root/data/siteRootUrl}}{{item.url}}", "image": [ {{#if item.primaryImage.large}}"{{ item.primaryImage.large}}"{{/if}} {{#each item.secondaryImages}} ,"{{listing}}" {{/each}} ], "url": "{{@root/data/siteRootUrl}}{{item.url}}", "description": "{{item.remarks}}", "price": "{{item.price.raw}}", "priceCurrency": "USD", "BusinessFunction": "https://purl.org/goodrelations/v1#{{#if item.transactionType.forSale}}Sell{{else if item.transactionType.forRent}}LeaseOut{{/if}}" }, {{/if}} {{#with item.address}} "location": { "@type": "Place", "name": "{{fullStreetAddress}}", "address": { "@type": "PostalAddress", "addressCountry": "USA", "addressLocality": "{{city}}", "addressRegion": "{{state}}", "postalCode": "{{zip}}", "streetAddress": "{{fullStreetAddress}}" } } {{/with}} } {{/if}} {{#if item.listing.openHouse}}]{{/if}} </script>{{/if}}
{{/with}}';