Skip to content

Using the public pool open data from Stadt Zürich as a JSON-API, CORS-enabled!

License

Notifications You must be signed in to change notification settings

AVGP/baditicker-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

baditicker-api

Using the public pool open data from Stadt Zürich as a JSON-API, CORS-enabled!

API

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

Contributing

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.

License

About

Using the public pool open data from Stadt Zürich as a JSON-API, CORS-enabled!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published