createFromGeoElement static method
- required GeoElement geoElement,
- required double bufferDistance,
Static factory function to create a FenceParameters.
This method creates the appropriate type of FenceParameters based on the type of the GeoElement that was supplied. The supported types of GeoElement are Graphic and Feature.
If passed an unsupported GeoElement, this method will return null.
Parameters:
geoElement
— An individual GeoElement used to create a FenceParameters object.bufferDistance
— A buffer distance in meters to apply to the GeoElement when checking if a Geotrigger condition is met.
Return Value: A FenceParameters created from a GeoElement.