Skip to content

Function: fetchZones()

fetchZones(regionalOnly?): Promise\<GeoJSONFeatureCollection>

Defined in: lib/api.ts:192

Fetches monitored fire risk zones from the backend.

Returns GeoJSON FeatureCollection of Zone objects with current risk data.

Parameters

Parameter Type Default value Description
regionalOnly? boolean true If true, only returns regional zones (excludes local monitoring)

Returns

Promise\<GeoJSONFeatureCollection>

GeoJSON FeatureCollection of zones with fire risk