# Accommodation Schema Generator and Guide

## Accommodation

_Schema.org Type_

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.

See also the [dedicated document on the use of schema.org for marking up hotels and other forms of accommodations](/content/docs/hotels.html).

**Accommodation** schema is a sub type of:

- [Place Schema](/content/schema_list/Place "Place JSON-LD Generator"/index.html)

This schema has more specific sub types.

Would you like to generate a more specific type of Accommodation schema?

- [Apartment Schema Generator](/content/schema_list/Apartment "Apartment JSON-LD Generator"/index.html)
- [CampingPitch Schema Generator](/content/schema_list/CampingPitch "CampingPitch JSON-LD Generator"/index.html)
- [House Schema Generator](/content/schema_list/House "House JSON-LD Generator"/index.html)
- [Room Schema Generator](/content/schema_list/Room "Room JSON-LD Generator"/index.html)
- [Suite Schema Generator](/content/schema_list/Suite "Suite JSON-LD Generator"/index.html)

## Accommodation Schema Generator in JSON-LD

Copy Code

@idaccommodationCategory

additionalType

address

alternateName

branchCode

description

disambiguatingDescription

faxNumber

floorLevel

globalLocationNumber

hasDriveThroughService

hasMap

identifier

image

isAccessibleForFree

isicV4

keywords

latitude

logo

longitude

mainEntityOfPage

map

maps

maximumAttendeeCapacity

name

numberOfBathroomsTotal

numberOfBedrooms

numberOfFullBathrooms

numberOfPartialBathrooms

numberOfRooms

permittedUsage

petsAllowed

publicAccess

sameAs

slogan

smokingAllowed

telephone

tourBookingPage

url

yearBuilt

**Accommodation schema code:**

This Schema can take the following complex properties:

Add Subschema

01. address: \| PostalAddress  \|
02. hasMap: \| Map  \|
03. identifier: \| PropertyValue  \|
04. image: \| ImageObject  \|
05. keywords: \| DefinedTerm  \|
06. logo: \| ImageObject  \|
07. mainEntityOfPage: \| CreativeWork  \|
08. numberOfBedrooms: \| QuantitativeValue  \|
09. numberOfRooms: \| QuantitativeValue  \|
10. accommodationFloorPlan: \| FloorPlan  \|
11. additionalProperty: \| PropertyValue  \|
12. aggregateRating: \| AggregateRating  \|
13. amenityFeature: \| LocationFeatureSpecification  \|
14. containedIn: \| Place  \|
15. containedInPlace: \| Place  \|
16. containsPlace: \| Place  \|
17. events: \| Event  \|
18. event: \| Event  \|
19. floorSize: \| QuantitativeValue  \|
20. geoContains: \| GeospatialGeometry  \| Place  \|
21. geo: \| GeoCoordinates  \| GeoShape  \|
22. geoCoveredBy: \| GeospatialGeometry  \| Place  \|
23. geoCovers: \| GeospatialGeometry  \| Place  \|
24. geoCrosses: \| GeospatialGeometry  \| Place  \|
25. geoDisjoint: \| GeospatialGeometry  \| Place  \|
26. geoEquals: \| GeospatialGeometry  \| Place  \|
27. geoIntersects: \| GeospatialGeometry  \| Place  \|
28. geoOverlaps: \| GeospatialGeometry  \| Place  \|
29. geoTouches: \| GeospatialGeometry  \| Place  \|
30. geoWithin: \| GeospatialGeometry  \| Place  \|
31. leaseLength: \| Duration  \| QuantitativeValue  \|
32. openingHoursSpecification: \| OpeningHoursSpecification  \|
33. photo: \| ImageObject  \| Photograph  \|
34. photos: \| ImageObject  \| Photograph  \|
35. potentialAction: \| Action  \|
36. review: \| Review  \|
37. reviews: \| Review  \|
38. specialOpeningHoursSpecification: \| OpeningHoursSpecification  \|
39. subjectOf: \| CreativeWork  \| Event  \|

## How to Create a **Accommodation** Schema

#### **Step 1:** Fill out the form above as much as possible.

**Note:** Use this [Schema.org](https://schema.org/) based structured data generator tool to easily create Accommodation schema.

The properties are the description of your entity. You don't have to fill in all the properties on this page. Provide what is available and leave what is not. To learn more about each property in your schema type please check [Accommodation schema properties](/content/schema_list/Accommodation#properties/index.html)

#### **Step 2:** When complete click the Copy Code button to get your JSON-LD code

**Notes:** To check if your code is eligible for featured snippets (rich snippets or rich results) test your code with the [Rich Results Test tool](https://search.google.com/test/rich-results) to learn more about which schema are qualified for rich results check out [Google’s search gallery](https://developers.google.com/search/docs/appearance/structured-data/search-gallery).

To validate your markup code, check your JSON-LD code with the [Schema Markup Validator](https://validator.schema.org/)

#### **Step 3:** To add a sub-schema, click on the Create Knowledge Graph button

**Important Notes:** to describe the relationship between your entities you must design a custom schema, this is where the 'creation of knowledge graph' is needed.

For example: if you have a local business and you want to add a service catalogue, or if you have a recipe schema and you want to add a HowTo steps, or if you have a product and you want to add a FAQ about it, to learn more watch [this semantic SEO workshop](https://www.youtube.com/watch?v=rO5iSUOQa5Q "schema markup course")

## [**Accommodation**](/content/schema_list/Accommodation "Accommodation Schema"/index.html) Schema Properties

Accommodation has 70 properties:

- [**accommodationCategory**](/content/schema_list/property/accommodationCategory/index.html) Category of an [Accommodation](/content/schema_list/Accommodation/index.html), following real estate conventions e.g. RESO (see [PropertySubType](https://ddwiki.reso.org/display/DDW17/PropertySubType+Field), and [PropertyType](https://ddwiki.reso.org/display/DDW17/PropertyType+Field) fields for suggested values).
- [**accommodationFloorPlan**](/content/schema_list/property/accommodationFloorPlan/index.html) A floorplan of some [Accommodation](/content/schema_list/Accommodation/index.html).
- [**additionalProperty**](/content/schema_list/property/additionalProperty/index.html) A property-value pair representing an additional characteristics of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.
