{
  "service": "swimq",
  "description": "Swimming water quality at the monitored beaches near a place, from the authorities that sample them.",
  "usage": [
    "GET /49.29,-123.14                     -- every monitored beach within 5 km, nearest first",
    "GET /?lat=49.29&lon=-123.14&within=20  -- a radius from 1 to 50 km (latitude, longitude, lng also work)",
    "GET /sources                           -- how each source is doing: last read, last pass, newest sample, season"
  ],
  "note": "Each result is the authority's own: its indicator, its statistic, its unit and its words. swimq never makes a verdict from a number. A result older than 14 days is left out, and the site says why.",
  "site": {
    "result": "The newest result: indicator, statistic, value and unit where the authority publishes them, its status in its own words, sampledOn and ageDays.",
    "forecast": "NSW Beachwatch only: today's pollution forecast, issued every morning.",
    "available": "False when neither is current, with a reason: out of season, not sampled lately, or the source unread.",
    "via": "Which source the site came from, an id in sources."
  },
  "sources": [
    "Metro Vancouver, with Vancouver Coastal Health and Fraser Health: 41 beaches, E. coli 30-day geometric mean, May to September",
    "City of Hamilton Public Health Services: 8 beaches, E. coli geometric mean in CFU/100 mL and whether the beach is posted, end of May to end of August",
    "NSW Beachwatch: 246 sites, the latest enterococci result as a word and a rating, and a daily pollution forecast"
  ],
  "freshness": "Read from each source every hour. Answers are cached 15 minutes.",
  "auth": "None. CORS is open, so a browser can call this directly.",
  "terms": "Free, unsupported, not for volume, and as is. Not for health decisions: the authority's own posting is the record. Send a User-Agent that names your app. https://almanac.gshaw.ca/#use",
  "repository": "https://github.com/gshaw/almanac/tree/main/services/swimq"
}
