FacilityUses and IndividualFacilityUses
What, where, and when a particular facility can be used can be represented in two ways in the Facilities API:
FacilityUse + Slots
FacilityUse + IndividualFacilityUses + Slots
Which format is used to describe facilities is determined by the underlying data structure provided to us by the data provider.
FacilityUse + Slots
This structure is simpler and easier to consume but does not provide the granularity of the other structure. A FacilityUse will have an event
property that contains an array of Slots
.
An example of this structure can be seen below:
FacilityUse + IndividualFacilityUses + Slots
This structure has more granularity but is slightly more complicated to consume. It has an additional layer between the FacilityUse and the Slot called an IndividualFacilityUse. This layer represents specific court/pitch facilities that sit within the more general facility. Within these IndividualFacilityUses will be the Slots that corresponds to that specific court/pitch.
An example of this data structure is:
More information about Slots can be found here Slots and more information about imin:checkoutUrlTemplate
and Slot booking can be found here Facilities Slot Booking
Last updated