Hotel structured data (Hotel / LodgingBusiness)
Why it matters Travel agents shortlist by location, stars and check-in times; a property without this data is described from guesses or left out.
- Category
- Property and service data
- Weight
- 18 of 100 points (together with the common checks)
- Critical blocker
- No. If it fails, it only costs its own weight.
- Applies to
- Hotels and lodging
- Effort
- 1-2 hours · developer
- Score model
- v2.4
How we measure it
We look for Hotel / LodgingBusiness structured data on the homepage and count seven fields: name, address, location, phone, star rating, check-in and check-out time. All pass, no data fails, anything in between is scored in proportion.
What the result page says
These are the sentences in the test result; “…” is replaced by what we found on your site.
- PassedHotel data is complete: …, with address, location, phone, star rating and check-in/check-out times.
- PartialHotel data is present but missing: ….
- FailedThe homepage has no Hotel, Resort or LodgingBusiness data describing the property.
How to fix it
Target: The homepage carries one Hotel (or Resort, BedAndBreakfast…) node with name, address, geo coordinates, phone, star rating and check-in/check-out times.
Example code
{
"@context": "https://schema.org",
"@type": "Hotel",
"@id": "https://example.com/#hotel",
"name": "Hotel name",
"url": "https://example.com",
"telephone": "+00 000 000 0000",
"address": { "@type": "PostalAddress", "streetAddress": "…", "addressLocality": "…", "addressCountry": "US" },
"geo": { "@type": "GeoCoordinates", "latitude": 0.0, "longitude": 0.0 },
"starRating": { "@type": "Rating", "ratingValue": 4 },
"checkinTime": "14:00",
"checkoutTime": "12:00"
}
Example values (example.com, product name, price) are placeholders; replace them with your own.
How to verify it yourself
The homepage’s Hotel JSON-LD should include name, address, geo, telephone, starRating, checkinTime and checkoutTime; test it in Google’s Rich Results Test.
Fix it with an AI coding agent
Paste this into Claude Code, Cursor or another coding agent working on your store’s code. Review the change before you deploy it.
You are working on my online store. Specoria’s agent readiness test checks the item below. Fix it so AI shopping agents can read the store and act on it.
## 1. Hotel structured data (Hotel / LodgingBusiness) (lodging_schema)
Target: The homepage carries one Hotel (or Resort, BedAndBreakfast…) node with name, address, geo coordinates, phone, star rating and check-in/check-out times.
Example fix (adapt it to this codebase and platform; example values are placeholders):
```
{
"@context": "https://schema.org",
"@type": "Hotel",
"@id": "https://example.com/#hotel",
"name": "Hotel name",
"url": "https://example.com",
"telephone": "+00 000 000 0000",
"address": { "@type": "PostalAddress", "streetAddress": "…", "addressLocality": "…", "addressCountry": "US" },
"geo": { "@type": "GeoCoordinates", "latitude": 0.0, "longitude": 0.0 },
"starRating": { "@type": "Rating", "ratingValue": 4 },
"checkinTime": "14:00",
"checkoutTime": "12:00"
}
```
Reference: https://specoria.com/method/checks/lodging-schema/
## Rules
- First look through the codebase and tell me which files or templates you will change, before editing anything.
- Change only what these checks need, and keep the visible page and the structured data saying the same thing.
- Never invent prices, stock, shipping or return terms, reviews or product identifiers (GTIN): take them from the store’s real data or ask me.
- Don’t block or slow down real visitors and don’t add tracking.
- After deploying, run the free test again at https://specoria.com/ to verify the fix.
Specifications and guidance
The check is based on these open sources; links go to the publisher’s own pages.