Simple API option
Currently, the API returns something like:
"main_schedule": {
"open_times": [
{
"id": 556,
"last_modified": "2016-08-29T00:35:40.011Z",
"schedule": 101,
"start_day": 0,
"start_time": "11:00:00",
"end_day": 0,
"end_time": "18:00:00"
},
{
"id": 557,
"last_modified": "2016-08-29T00:35:40.013Z",
"schedule": 101,
"start_day": 1,
"start_time": "11:00:00",
"end_day": 1,
"end_time": "18:00:00"
},
{
"id": 558,
"last_modified": "2016-08-29T00:35:40.020Z",
"schedule": 101,
"start_day": 2,
"start_time": "11:00:00",
"end_day": 2,
"end_time": "18:00:00"
},
{
"id": 559,
"last_modified": "2016-08-29T00:35:40.022Z",
"schedule": 101,
"start_day": 3,
"start_time": "11:00:00",
"end_day": 3,
"end_time": "18:00:00"
},
{
"id": 560,
"last_modified": "2016-08-29T00:35:40.028Z",
"schedule": 101,
"start_day": 4,
"start_time": "11:00:00",
"end_day": 4,
"end_time": "18:00:00"
}
],
"id": 101,
"last_modified": "2016-08-29T00:35:40.004Z",
"name": "Auntie Anne's",
"valid_start": "2014-08-24",
"valid_end": "2015-01-01"
},
"special_schedules": [],
"id": 100,
"last_modified": "2016-08-29T00:34:12.980Z",
"name": "Auntie Anne's",
"category": null,
"location": "Johnson Center"
}
Which requires a lot of client side processing. It's a very verbose approach, but some applications might not need that. Ideally, we would have an endpoint available that returns just the current open_times
and whether or not the facility is open.