ImaScPdfWaterQualityClient

marola.water.ImaScPdfWaterQualityClient
See theImaScPdfWaterQualityClient companion object
final class ImaScPdfWaterQualityClient(indexUrl: String = ..., pointsUrl: String = ...) extends WaterQualityClient

IMA/SC from the weekly bulletin PDF, for when the JSON feed is unreachable.

Two sources, each useless alone. The PDF has a collection date and a verdict per point but no coordinates; the HTTP JSON has coordinates for all 260 points but, unlike the HTTPS one, no samples at all. Joined on the beach and point names they reconstruct what the HTTPS feed used to return in one call.

The bulletin URL is discovered from the portal's index rather than hardcoded — the mistake that left Rio pinned to a June PDF until its samples aged past the 45-day rule and the area went dark with nothing to say so.

Attributes

Companion
object
Graph
Supertypes
trait WaterQualityClient
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def name: String
def samplingPoints: List[SamplingPoint] < Sync