Plugin : Geofire
Author:Rex.Rainbow
- Realtime location queries with Firebase.
Download
Properties
Sub domain
- Sub domain for this function.
Actions
Domain
Action:Set sub domain
- Set sub domain ref.
- Sub domain ( string ) : Sub domain for this function.
Get
Action:Get item
Monitor
Action:Monitor at
- Monitor an area
- Latitude ( number ) : Latitude of center.
- Longitude ( number ) : Longitude of center.
- Radius ( number ) : Radius, in kilometers, from the center of this monitor in which to include results.
Action:Stop
On disconnected
Action:Remove item
- Remove item on disconnected.
Action:Cancel all handlers
- Cancel all handlers of disconnected.
Set
Action:Set location
- Set location of an item.
- ID ( string ) : ItemID.
- Latitude ( number ) : Latitude.
- Longitude ( number ) : Longitude.
Action:Remove item
Expressions
Event
Expression:LastItemID
- Get itemID returned by the last triggered event.
Expression:LastLatitude
- Get latitude returned by the last triggered event.
Expression:LastLongitude
- Get longitude returned by the last triggered event.
Expression:LastDistance
- Get distance between triggered item to monitor point returned by the last triggered event.
For Each
Expression:CurItemID
- Get current itemID in a For Each loop.
Expression:CurLatitude
- Get current latitude in a For Each loop.
Expression:CurLongitude
- Get current longitude in a For Each loop.
Expression:CurDistance
- Get current distance between triggered item to monitor point in a For Each loop.
Helper
Expression:Distance
- Get distance between two points, in kilometers.
- Latitude A ( number ) : Latitude of point A.
- Longitude A ( number ) : Longitude of point A.
- Latitude B ( number ) : Latitude of point B.
- Longitude B ( number ) : Longitude of point B.
ItemID
Expression:GenerateKey
- Generate new key from push action.
Expression:LastGeneratedKey
- Get last generate a key from push action.
Monitor area
Expression:MonitorLatitude
- Get latitude of monitor center.
Expression:MonitorLongitude
- Get longitude of monitor center.
Expression:MonitorRadius
- Get radius of monitor, in kilometers.
Conditions
Get
Condition:On get item
Condition:On get item error
- Triggered when get item error.
Condition:Item is not found
- Return true if item is not found.
Monitor
Condition:On item entered
- Triggered when item entered.
Condition:On item exited
- Triggered when item exited.
Condition:On item moved
- Triggered when item moved.
Condition:On initial ready
- Triggered when initial data has loaded and fired all other events.
Condition:For each itemID
- Repeat the event for each itemID of monitor result.
- Order ( Combo ) : Order of itemID.
- Options : ["descending","ascending","logical descending","logical ascending"]
Set
Condition:On update
- Triggered when update location complete.
Condition:On update error
- Triggered when update location error.