Last active
June 20, 2018 12:36
-
-
Save ldodds/4adf501db61865d9c21763b5dd6b24e5 to your computer and use it in GitHub Desktop.
Facilities examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "https://www.openactive.io/ns/oa.jsonld", | |
"type": "FacilityUse", | |
"url": "http://www.example.org/facility-use/1", | |
"name": "Example Leisure Centre Table Tennis", | |
"description": "Table tennis tables are available to hire for thirty minute slots", | |
"activity": "Table Tennis", | |
"location": { | |
"type": "Place", | |
"name": "Example Leisure Centre", | |
"address": { | |
"type": "PostalAddress", | |
"streetAddress": "1 High Street", | |
"addressLocality": "Bristol", | |
"postalCode": "BS1 4SD" | |
} | |
}, | |
"events": [ | |
{ | |
"type": "Slot", | |
"startDate": "2018-03-01T10:00:00Z", | |
"duration": "PT30M" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "https://www.openactive.io/ns/oa.jsonld", | |
"type": "FacilityUse", | |
"url": "http://www.example.org/facility-use/1", | |
"name": "Example Leisure Centre Table Tennis", | |
"description": "Table tennis tables are available to hire for thirty minute slots", | |
"activity": "Table Tennis", | |
"location": { | |
"type": "Place", | |
"name": "Example Leisure Centre", | |
"address": { | |
"type": "PostalAddress", | |
"streetAddress": "1 High Street", | |
"addressLocality": "Bristol", | |
"postalCode": "BS1 4SD" | |
} | |
}, | |
"events": [ | |
{ | |
"type": "Slot", | |
"startDate": "2018-03-01T10:00:00Z", | |
"duration": "PT30M", | |
"eventStatus": "http://openactive.io/ns#Available" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "https://www.openactive.io/ns/oa.jsonld", | |
"type": "FacilityUse", | |
"url": "http://www.example.org/facility-use/1", | |
"name": "Example Leisure Centre Table Tennis", | |
"description": "Table tennis tables are available to hire for thirty minute slots", | |
"activity": "Table Tennis", | |
"location": { | |
"type": "Place", | |
"name": "Example Leisure Centre", | |
"address": { | |
"type": "PostalAddress", | |
"streetAddress": "1 High Street", | |
"addressLocality": "Bristol", | |
"postalCode": "BS1 4SD" | |
} | |
}, | |
"offers": [ | |
{ | |
"name": "30 minute hire", | |
"price": "10", | |
"priceCurrency": "GBP" | |
} | |
], | |
"events": [ | |
{ | |
"type": "Slot", | |
"startDate": "2018-03-01T10:00:00Z", | |
"duration": "PT30M", | |
"eventStatus": "http://openactive.io/ns#Available" | |
}, | |
{ | |
"type": "Slot", | |
"startDate": "2018-03-01T11:00:00Z", | |
"duration": "PT30M", | |
"eventStatus": "http://openactive.io/ns#Available", | |
"offers": [ | |
{ | |
"name": "30 minute hire", | |
"price": "15", | |
"priceCurrency": "GBP", | |
"inventoryLevel": 4 | |
} | |
] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "https://www.openactive.io/ns/oa.jsonld", | |
"type": "FacilityUse", | |
"url": "http://www.example.org/facility-use/2", | |
"name": "Play Tenns on the Main Tennis Court", | |
"description": "Tennis courts are available for 30 min sessions", | |
"image": [ | |
"http://example.org/images/1.jpg" | |
], | |
"activity": "Tennis", | |
"location": { | |
"type": "SportsActivityLocation", | |
"name": "Main Tennis Court", | |
"containedInPlace": { | |
"type": "Place", | |
"name": "Example Leisure Centre", | |
"address": { | |
"type": "PostalAddress", | |
"streetAddress": "1 High Street", | |
"addressLocality": "Bristol", | |
"postalCode": "BS1 4SD" | |
} | |
} | |
}, | |
"events": [ | |
{ | |
"type": "Slot", | |
"startDate": "2018-03-01T10:00:00Z", | |
"duration": "PT30M" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "https://www.openactive.io/ns/oa.jsonld", | |
"type": "FacilityUse", | |
"url": "http://www.example.org/facility-use/1", | |
"name": "Example Leisure Centre Table Tennis", | |
"description": "Table tennis tables are available to hire for thirty minute slots", | |
"activity": "Table Tennis", | |
"hoursAvailable": [ | |
{ | |
"@type": "OpeningHoursSpecification", | |
"closes": "17:00:00", | |
"dayOfWeek": "http://schema.org/Sunday", | |
"opens": "09:00:00" | |
} | |
], | |
"location": { | |
"type": "Place", | |
"name": "Example Leisure Centre", | |
"address": { | |
"type": "PostalAddress", | |
"streetAddress": "1 High Street", | |
"addressLocality": "Bristol", | |
"postalCode": "BS1 4SD" | |
} | |
}, | |
"events": [ | |
{ | |
"type": "Slot", | |
"startDate": "2018-03-01T10:00:00Z", | |
"duration": "PT30M" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "https://www.openactive.io/ns/oa.jsonld", | |
"type": "FacilityUse", | |
"url": "http://www.example.org/facility-use/1", | |
"name": "Example Leisure Centre Table Tennis", | |
"description": "Table tennis tables are available to hire for thirty minute slots", | |
"activity": "Table Tennis", | |
"location": { | |
"type": "Place", | |
"name": "Example Leisure Centre", | |
"address": { | |
"type": "PostalAddress", | |
"streetAddress": "1 High Street", | |
"addressLocality": "Bristol", | |
"postalCode": "BS1 4SD" | |
} | |
}, | |
"events": [ | |
{ | |
"type": "Slot", | |
"startDate": "2018-03-01T11:00:00Z", | |
"duration": "PT30M", | |
"eventStatus": "http://openactive.io/ns#Available", | |
"offers": [ | |
{ | |
"name": "30 minute hire", | |
"price": "15", | |
"priceCurrency": "GBP", | |
"addOn": { | |
"type": "Offer", | |
"name": "Buy extra 30 mins", | |
"price": "12", | |
"priceCurrency": "GBP" | |
} | |
} | |
] | |
}, | |
{ | |
"type": "Slot", | |
"startDate": "2018-03-01T11:30:00Z", | |
"duration": "PT30M", | |
"eventStatus": "http://openactive.io/ns#Available", | |
"offers": [ | |
{ | |
"name": "30 minute hire", | |
"price": "15", | |
"priceCurrency": "GBP" | |
} | |
] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment