: How to specify opening hours for a TouristAttraction? Google’s SDTT gives a warning when using 'openingHours' I have a tourism website that contains popular parks, museums, temples, historical
I have a tourism website that contains popular parks, museums, temples, historical places and so on. All of them have some opening and closing time.
Now each of my categories has a type in Schema.org except tombs, forts and world heritage sites (in shot historical places). So what I did is, wrote only "TouristAttraction" in the "@type" field.
Now the problem is Google’s SDTT is saying:
The property openingHours is not recognized by Google for an object of type TouristAttraction.
as a warning in that case only.
So what type should I define for historical places so that I can also write their opening and closing timings without getting any warning from the SDTT?
More posts by @Berryessa370
2 Comments
Sorted by latest first Latest Oldest Best
You could use the property type as OpeningHoursSpecification
The property values could be
closes of type time
dayOfWeek of type DayOfWeek
opens of type time
validFrom of type DateTime
validThrough of type DateTime
This should work.
You can read more here: schema.org/OpeningHoursSpecification
By the way have a look at Qualifying content types for Google's Structured Data. It says Google only supports Articles, Local Business, Music, Receipes, Reviews, TV & Movies, Videos, Products, JobPostings, PodCasts, Datasets, FactChecks etc. I am little unsure if Google will show the results on SERP for OpeningHoursSpecification. Please correct me if I am wrong.
The openingHours property is not defined for the TouristAttraction type, so it makes sense that Google’s SDTT doesn’t recognize it.
But TouristAttraction defines an alternative:
openingHoursSpecification
specialOpeningHoursSpecification (for overwriting what got specified with openingHoursSpecification, e.g., for exceptions)
Both properties expect values of the type OpeningHoursSpecification.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.