Skip to content

Function: subscribeToLocation()

subscribeToLocation(payload): Promise\<SubscriptionResponse>

Defined in: lib/api.ts:240

Subscribes current user to fire risk alerts for a zone.

Creates subscription to receive notifications when fire risk exceeds configured threshold in the specified geohash zone.

Parameters

Parameter Type Description
payload SubscriptionRequest Subscription request with geohash

Returns

Promise\<SubscriptionResponse>

Subscription confirmation and status