Schema: numberOfRooms
Schema: numberOfRooms Example Markup
The following are examples of markup written in json+ld that include the correct usage for Schema: numberOfRooms.
Hotel JSON-LD example for a boutique hotel in Dunmore hosting XooCon attendees. Covers starRating, amenityFeature with LocationFeatureSpecification, checkinTime/checkoutTime, numberOfRooms, petsAllowed, and the LodgingBusiness property set for hospitality search.
Accommodation JSON-LD example for a Copenhagen apartment listing. Covers all 17 Accommodation properties including floorSize, numberOfRooms, numberOfBedrooms, bed (with BedDetails), occupancy, petsAllowed, amenityFeature, yearBuilt, leaseLength.
House JSON-LD example for a real estate listing in Dunmore. Covers numberOfRooms (re-declared on House) plus all inherited Accommodation properties: floorSize, occupancy, petsAllowed, yearBuilt, amenityFeature.
SingleFamilyResidence JSON-LD example for a detached single-family home. SingleFamilyResidence re-declares numberOfRooms and occupancy; for the full property walkthrough, see the House example.
Apartment JSON-LD example for a Copenhagen rental unit. Covers numberOfRooms and occupancy (re-declared on Apartment) plus inherited Accommodation properties for floor size, bedrooms, bathrooms, amenities, pet policies, lease length.
Suite JSON-LD example for the Hotel Dunmore Presidential Suite. Covers bed (with BedDetails), numberOfRooms, and occupancy (re-declared on Suite), plus inherited Accommodation amenities and floor size.
Residence JSON-LD stub for a residential building as a Place. Adds accommodationFloorPlan and floorLevel. Parent of ApartmentComplex and GatedResidenceCommunity.
FloorPlan JSON-LD example for the layout of a housing unit or building. Pending Intangible adding 12 properties: amenityFeature, floorSize, isPlanForApartment, layoutImage, numberOfAccommodationUnits, numberOfAvailableAccommodationUnits, numberOfBathroomsTotal, numberOfBedrooms, numberOfFullBathrooms, numberOfPartialBathrooms, numberOfRooms, petsAllowed.
Campground JSON-LD stub for tent, RV, and cabin campgrounds. Dual-inherits CivicStructure and LodgingBusiness, giving it the full lodging vocabulary (checkinTime, checkoutTime, numberOfRooms, petsAllowed, starRating, amenityFeature, availableLanguage, audience).
BedAndBreakfast JSON-LD stub for B&Bs and small inns. Direct LodgingBusiness subtype with no unique properties.
Hostel JSON-LD stub for hostels with shared dormitory and private room accommodations. Direct LodgingBusiness subtype with no unique properties.
Motel JSON-LD stub for motels and motor lodges. Direct LodgingBusiness subtype with no unique properties.
VacationRental JSON-LD stub for whole-property short-term rentals (Airbnb-style). Direct LodgingBusiness subtype with no unique properties.
Resort JSON-LD stub for destination resorts and leisure properties. Direct LodgingBusiness subtype with no unique properties.
RealEstateListing JSON-LD example for a property-listing page (sale or rent). WebPage subtype with datePosted and leaseLength.