Similar to previous enhancements made to Attractions, 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. Categories impacted include Accommodations, Bars & Clubs, Food & Beverages, Malls & Shops, and Tours. Both existing and new data formats will be available via User APIs for three months; after which, they will be deprecated. For those 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.
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",