Has JSON-LD Accommodation is a binary signal (1 or 0) that reports whether RankGear finds an @type of Accommodation in a page’s raw HTML. It confirms the type string is present — it does not parse or validate the JSON-LD graph, so a bare match anywhere in the source still counts.
| Factor ID | RG-SCJ-002 |
|---|---|
| Family | Structured Data – JSON-LD |
| Measurement | Binary presence (0 / 1) |
| Measured zone | Raw rendered HTML |
What it measures
This factor reports whether RankGear finds an @type value of Accommodation in the raw source. Accommodation is the schema.org type for a lodging entity — the parent of subtypes such as hotel rooms, apartments, and suites. The factor answers one yes/no question: is that type declared anywhere in the page’s markup?
How RankGear measures it
RankGear searches the raw HTML for "@type": "Accommodation", allowing flexible whitespace around the colon and an optional schema: prefix on the type value. The match is case-insensitive and returns 1 on any match, 0 otherwise. It is a string search over the raw source, not a parse of the structured-data graph.
What RankGear looks for
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Accommodation"
}
</script>The whitespace around the colon may vary, the value may be prefixed ("@type": "schema:Accommodation"), and case is ignored — any of these variants returns 1.
| Value | Meaning |
|---|---|
| 1 | An Accommodation type string was found in the raw HTML. |
| 0 | No matching Accommodation type string was found. |
How to optimize it
Use Accommodation only for a genuine lodging entity, and provide accurate subtype, location, amenities, and identity data alongside it. Treat the 1/0 as an observation of markup presence rather than a target to force: a bare type string satisfies this detector, but it adds nothing unless the page truly describes a lodging entity and the surrounding properties reflect what visitors can see.
Important considerations
- RankGear pattern-matches the raw source; it does not parse or validate the JSON-LD graph.
- A matching string outside a valid JSON-LD script can still produce 1.
- Capitalization differences do not affect this detector.
- The type and all properties must accurately reflect the visible content of the page.
- This is a prioritization signal that relates to position within a measured result set — presence of the type correlates with, but does not cause or guarantee, any ranking.
Related factors
Part of the Factors reference · how RankGear measures · glossary.