Using the public pool open data from Stadt Zürich as a JSON-API, CORS-enabled!
This is a simple, stupid API with a single endpoint: GET /
.
Sending a GET request to https://baditicker.herokuapp.com/ you'll receive a response like this:
{
"pools": [{
"name": "Flussbad Au-Höngg",
"temperature": 17,
"updatedAt": "Mi, 10.06.2015 11:02",
"open": false,
"openText": "geschlossen",
"url": "http://www.stadt-zuerich.ch/content/ssd/de/index/sport/schwimmen/sommerbaeder/flussbad_au_hoengg.html"
},
{
"name": "Flussbad Oberer Letten",
"temperature": 18,
"updatedAt": "Mi, 10.06.2015 08:20",
"open": true,
"openText": "geöffnet bis 13:00",
"url": "http://www.stadt-zuerich.ch/content/ssd/de/index/sport/schwimmen/sommerbaeder/flussbad_oberer_letten.html"
}]
}
Here's what each field means:
Field name | Description | Type |
---|---|---|
name | A human-readable name of the pool | String |
temperature | The water temperature | Float |
updatedAt | A datetime containing the last update of the record for this pool | DateTime |
open | Indicates if this pool is currently open or closed | Boolean |
openText | Gives the raw text from the pool website, including information such as "open until 13:00" | String |
url | The web address of the official website for the pool | String |
If you find a bug or want to change the data that the API exposes, please open an issue or a pull request. The codebase follows the NPM Coding Style Standard.
- The code is MIT licensed.
- The original data source is licensed under the CC-0 license