Skip to content
AnswerWell geo Documentation

Research · 8 min read · Answerwell

Accommodation Markup: Lodging Types, Properties, Floor Plans, and Beds

How Schema.org Accommodation, HotelRoom, FloorPlan, and related properties describe hotels, rooms, and rentals in structured data.

This page summarises Schema.org vocabulary for places people can stay or meet: the generic Accommodation type, more specific room and unit types, and the properties publishers use for size, occupancy, beds, amenities, and floor plans. The design aligns with the STI Accommodation Ontology and is documented in depth in Markup for Hotels.

Accommodation: what the type means in structured data

Section titled “Accommodation: what the type means in structured data”

Accommodation is a Place that can accommodate people—not only overnight lodging, but also spaces such as meeting rooms.

An accommodation is a place that can accommodate human beings, e.g. a hotel room, a camping pitch, or a meeting room. Many accommodations are for overnight stays, but this is not a mandatory requirement. For more specific types of accommodations not defined in schema.org, one can use additionalType with external vocabularies.

— Schema.org, Accommodation

In page markup, you typically pair a lodging business (the hotel, campground, or vacation rental operator) with one or more accommodation units (the bookable room, suite, or pitch). LodgingBusiness covers the business; Accommodation and its subtypes describe the unit itself.

LodgingBusiness vs Accommodation: which type goes where

Section titled “LodgingBusiness vs Accommodation: which type goes where”

Use LodgingBusiness (or a subtype such as Hotel, Motel, Campground, Hostel, Resort, BedAndBreakfast, or VacationRental) for the property or brand listing. Use Accommodation or a narrower subtype on the unit you are selling or describing (a single HotelRoom, Suite, Apartment, or CampingPitch).

Markup for Hotels lists explicit lodging business types and notes that for other forms you can use generic LodgingBusiness plus additionalType with external identifiers.

Layer Typical types (from Markup for Hotels) Example on a hotel site
Business Hotel, Motel, LodgingBusiness, … One JSON-LD entity for the hotel
Unit HotelRoom, Suite, Room, Apartment, … Per room type or per bookable URL
Real estate complex ApartmentComplex, FloorPlan Building or “2 bed / 2 bath” plan

Business-level amenities can use amenityFeature on LodgingBusiness or Place; unit-level amenities belong on the accommodation entity.

Section titled “Accommodation types: HotelRoom, Apartment, Room, and related types”

Schema.org provides dedicated types when your unit fits one of the defined kinds. Markup for Hotels lists accommodations including Apartment, CampingPitch, Room, HotelRoom, MeetingRoom, House, and Suite. For anything else, use Accommodation with additionalType when needed.

Type Hierarchy When to use it
HotelRoom Place > Accommodation > Room > HotelRoom A single room in a hotel
Room Place > Accommodation > Room A distinguishable space in a structure; subtypes include HotelRoom, MeetingRoom
Suite Place > Accommodation > Suite Multi-room luxury unit in a hotel
Apartment Place > Accommodation > Apartment Self-contained unit occupying part of a building
House Place > Accommodation > House Whole-house stays
CampingPitch under Accommodation Individual overnight outdoor pitch

A hotel room is a single room in a hotel.

— Schema.org, HotelRoom

An apartment (in American English) or flat (in British English) is a self-contained housing unit (a type of residential real estate) that occupies only part of a building

— Schema.org, Apartment

MeetingRoom is still an Accommodation: useful for conference facilities even when the stay is not overnight.

Core Accommodation properties: size, rooms, occupancy, and rules

Section titled “Core Accommodation properties: size, rooms, occupancy, and rules”

Properties defined on Accommodation include floorSize, floorLevel, room and bathroom counts, occupancy, petsAllowed, permittedUsage, accommodationCategory, yearBuilt, tourBookingPage, accommodationFloorPlan, amenityFeature, and bed. Inherited Place fields such as address and geo apply as for any place.

numberOfRooms and bathrooms: RESO-style counting

Section titled “numberOfRooms and bathrooms: RESO-style counting”

Real-estate-style counts are shared across Accommodation and FloorPlan:

The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.

— Schema.org, Accommodation (property numberOfBathroomsTotal)

accommodationCategory should follow conventions such as RESO (PropertySubType, PropertyType—see the property definition on accommodationCategory).

Section titled “occupancy: permitted guests vs legal maximum”

occupancy is a QuantitativeValue for how many people may use the unit under the agreement (including infants), not necessarily the legal maximum.

For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). Typical unit code(s): C62 for person.

— Schema.org, occupancy

floorLevel should use the local floor numbering system where international conventions differ.

floorSize uses QuantitativeValue; typical unit codes include MTK (square metre), FTK (square foot), and YDK (square yard).

petsAllowed, permittedUsage, and tourBookingPage

Section titled “petsAllowed, permittedUsage, and tourBookingPage”

petsAllowed accepts Boolean or Text for nuance (breeds, fees). It appears on Accommodation, ApartmentComplex, FloorPlan, and LodgingBusiness.

permittedUsage on Accommodation carries textual rules for allowed use.

tourBookingPage links to how to book a tour of the place—common in real-estate settings for Accommodation or ApartmentComplex.

leaseLength may appear on Accommodation, Offer, or RealEstateListing depending on whether length is tied to the unit or the listing.

bed property: text, BedDetails, and BedType

Section titled “bed property: text, BedDetails, and BedType”

The bed property on Accommodation, HotelRoom, and Suite describes bed types in the unit. Schema.org expects different shapes for simple vs counted beds.

The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text. If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property.

— Schema.org, bed

Situation Recommended markup
One bed, one type bed as Text (e.g. "Queen")
Several beds of known types BedDetails with numberOfBeds and typeOfBed
Rich feature data (linens, sofa bed, etc.) amenityFeature → LocationFeatureSpecification

BedDetails is an Intangible holding quantity and type:

An entity holding detailed information about the available bed types, e.g. the quantity of twin beds for a hotel room. For the single case of just one bed of a certain type, you can use bed directly with a text. See also BedType (under development).

— Schema.org, BedDetails

typeOfBed may be BedType or Text. BedType is an enumeration (still marked under development in the definition); usage in the wild is relatively low compared with text values.

amenityFeature: wifi, mini-bar, and LocationFeatureSpecification

Section titled “amenityFeature: wifi, mini-bar, and LocationFeatureSpecification”

Room and property features (for example wifi or air conditioning) are expressed with amenityFeature pointing to LocationFeatureSpecification.

Room features, like “mini-bar”, “wifi” or “air conditioning” can be expressed using the amenityFeature property and an LocationFeatureSpecification entity, which is a special form of a property-value. The amenityFeature property does not make a statement on whether the room feature is free or for an additional charge.

— Schema.org, Markup for Hotels

An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.

— Schema.org, amenityFeature

LocationFeatureSpecification extends PropertyValue: use name, value, unitCode, propertyID, and optional hoursAvailable, validFrom, and validThrough when availability matters.

amenityFeature is used on Accommodation, FloorPlan, LodgingBusiness, and generic Place—put features on the same entity they describe (hotel-wide pool vs in-room safe).

FloorPlan and ApartmentComplex: plans for many similar units

Section titled “FloorPlan and ApartmentComplex: plans for many similar units”

FloorPlan models a collection of similar accommodations so shared facts and offers can be attached once.

A FloorPlan is an explicit representation of a collection of similar accommodations, allowing the provision of common information (room counts, sizes, layout diagrams) and offers for rental or sale. In typical use, some ApartmentComplex has an accommodationFloorPlan which is a FloorPlan. A FloorPlan is always in the context of a particular place, either a larger ApartmentComplex or a single Apartment. The visual/spatial aspects of a floor plan (i.e. room layout, see wikipedia) can be indicated using image.

— Schema.org, FloorPlan

Typical links:

ApartmentComplex is a Residence type for the whole complex. It adds numberOfAccommodationUnits and numberOfAvailableAccommodationUnits (also on FloorPlan), plus shared numberOfBedrooms and petsAllowed where appropriate.

A FloorPlan can repeat many accommodation fields—numberOfRooms, bathroom counts, floorSize, amenityFeature, petsAllowed—when those values are identical for every unit in the plan.

LodgingBusiness: star ratings and property-level fields

Section titled “LodgingBusiness: star ratings and property-level fields”

On the business entity, Markup for Hotels notes that star ratings are widely used quality signals, often defined by public or private bodies with criteria that may include minimum amenities per star level. LodgingBusiness supports starRating among other lodging-specific properties (see the type summary under LodgingBusiness in the Schema.org version reference).

Star rating belongs on the business, not on each HotelRoom, unless your public data model genuinely rates individual units.

For reservation-centric text, lodgingUnitDescription and lodgingUnitType are defined for use with LodgingReservation (full unit description and textual unit type including suite vs room and bed size).

Common mistakes when marking up accommodations

Section titled “Common mistakes when marking up accommodations”
  1. Open Markup for Hotels and confirm your @type choices match the listed lodging and accommodation types (or additionalType where you use external vocabularies).

  2. For each unit entity, compare properties against Accommodation and the specific subtype page (for example HotelRoom or Apartment).

  3. If you use plans or multifamily listings, verify FloorPlan links (accommodationFloorPlan, isPlanForApartment, layoutImage) against the FloorPlan and ApartmentComplex definitions.

  4. Re-read bed and amenityFeature on your markup: single bed as text, multiple beds as BedDetails, and features as LocationFeatureSpecification.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact wording you are asking about.