addFeature method

Future<String> addFeature(
  1. Feature<GeometryObject> feature
)

Monitors feature. Returns its id.

See GeofenceFeature for an easy way to create circles and polygons for geofencing.

An existing feature with the same id is overwritten and its state is reset.

Throws a GeofencingError on failure, with GeofencingErrorType.featureNotStored if the dwell time is shorter than 1 minute, or if the radius of a GeofenceFeature.circle is smaller than 1 meter.

Implementation

Future<String> addFeature(Feature feature) {
  return _impl.addFeature(feature);
}