Improvements have been made to TIH’s Opening Hours by replacing the existing free text format with a structured data format, allowing your applications to filter content based on opening hours. Both existing and new data formats will be available via Extraction APIs for three months; after which, they will be deprecated. For those of you using our Contributor APIs, you will need to have your content mapped onto the new format with immediate effect. For a full list of APIs affected by this change, click here.
Similar to our multi-language APIs, the shift to structured opening hours will be progressively rolled out with other content categories such as Food & Beverages, Bars & Clubs, etc.
An example of existing free text format:
{ …. “openingHours”: [ “Everyday whole day. Public Holidays opened from 8:30am to 2:30pm” ], …}
An example of new structured data format:
"businessHour":
[
{
"day": "daily",
"openTime": “00:00",
"closeTime": “23:59",
"description": "",
"sequenceNumber": 1,
"daily": true
},
{
"day": "public_holiday",
"openTime": "08:30",
"closeTime": “14:30",
"description": "",
"sequenceNumber": 2,
"daily": false
}
],"notes": “This is notes",