Last active
August 29, 2015 14:09
-
-
Save daarom/6d5b3d8cf6aad57d4ee6 to your computer and use it in GitHub Desktop.
LodgingReservation markup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- header logo, usually elsewhere, island via itemref & id --> | |
<!-- whether the "a" property comes before the "b" property or not is not important: --> | |
<!-- http://www.w3.org/TR/microdata/ --> | |
<div><span id="vincentlogo"> | |
<img itemprop="logo" src="http://www.example.com/logo.png" /> | |
<a itemprop="url" href="http://www.example.com/">Homepage</a> | |
</span></div> | |
<!-- Seller Details --> | |
<div itemscope itemtype="http://schema.org/TravelAgency" itemref="vincentlogo makes-offer"> | |
<h2 itemprop="name">Daarom inc. - Online reisaanbieder</h2> | |
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> | |
Mijn address: | |
<span itemprop="streetAddress">Weteringkade</span> | |
<span itemprop="postalCode">1235aa</span> | |
<span itemprop="addressLocality">Noordwijk</span> | |
<meta itemprop="addressCountry" content="NL"><br> | |
Tel:<span itemprop="telephone"> 001 12 34 56 00 </span>, | |
Fax:<span itemprop="faxNumber">001 12 34 46 01 </span>, | |
E-mail: <span itemprop="email">vincent(at)example.com</span> | |
</div></div> | |
<div itemprop="makesOffer" itemscope itemtype="http://schema.org/Offer" id="makes-offer" > | |
<!-- Reservation Details --> | |
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/LodgingReservation"> | |
<time itemprop="checkinTime" datetime="2014-11-05T08:30:00-08:00"/> | |
<time itemprop="checkoutTime" datetime="2014-11-09T08:30:00-08:00"/> | |
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/LodgingBusiness" id="hoteldebotel"> | |
<!-- I choose not to use /Hotel because there will also be hostels, motels etc that can be booked --> | |
<!-- excluded still would be appartments or campground places :'( so one template to fit them all is impossible --> | |
<h1 itemprop="name">Vincents Paradise Hotel</h1> | |
<p itemprop="description">Enjoy a perfect holiday at the Vincents Hotel, the most beautiful hotel in Paradise!</p> | |
<img itemprop="image" src="http://example.com/paradise-view.jpg" alt="Beautiful Paradise" > | |
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> | |
<span itemprop="streetAddress">123 boulevard</span><br> | |
<span itemprop="postalCode">1234aa</span> - <span itemprop="addressLocality">Paradise</span><br> | |
<span itemprop="addressRegion">Bergen</span><br> | |
<span itemprop="addressCountry">Norway</span><br> | |
Tel:<span itemprop="telephone"> 001 12 34 56 00 </span>, | |
Fax:<span itemprop="faxNumber">001 12 34 46 01 </span>, | |
E-mail: <span itemprop="email">vincent(at)example.com</span> | |
</div> | |
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> | |
Rated <span itemprop="ratingValue">3.5</span>/5 | |
based on <span itemprop="reviewCount">11</span> customer reviews | |
</div> | |
</div> | |
</div> | |
<!-- /Reservation Details --> | |
<br><br> | |
<!-- usually reviews are somewhere else to, connect via ref & id --> | |
<div id="hoteldebotel"> | |
<h3>Customer reviews:</h3> | |
<div itemprop="review" itemscope itemtype="http://schema.org/Review"> | |
<span itemprop="name">Not a happy camper</span> - | |
by <span itemprop="author">Ellie</span>, | |
<meta itemprop="datePublished" content="2014-04-01">April 1, 2014 | |
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"> | |
<meta itemprop="worstRating" content = "1"> | |
<span itemprop="ratingValue">1</span>/ | |
<span itemprop="bestRating">5</span>stars | |
</div> | |
<span itemprop="description">The place was dirty! I had to clean | |
it myself Booh! </span> | |
</div><br> | |
<div itemprop="review" itemscope itemtype="http://schema.org/Review"> | |
<span itemprop="name">Value purchase</span> - | |
by <span itemprop="author">Lucas</span>, | |
<meta itemprop="datePublished" content="2014-03-25">March 25, 2014 | |
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"> | |
<meta itemprop="worstRating" content = "1"/> | |
<span itemprop="ratingValue">4</span>/ | |
<span itemprop="bestRating">5</span>stars | |
</div> | |
<span itemprop="description">I love this place.</span> | |
</div> | |
</div> | |
<!-- end of /reviews island --> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment