Class GeofenceMatch
java.lang.Object
com.cercalia.sdk.model.geofencing.GeofenceMatch
Match result for a geofence shape that contains points.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forGeofenceMatch.static final classA point that was matched inside a geofence shape. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull GeofenceMatch.Builderbuilder()Creates a new builder forGeofenceMatch.@NotNull List<GeofenceMatch.MatchedPoint>Returns the points that are inside this shape.@NotNull StringReturns the unique identifier of the shape.@NotNull StringReturns the WKT representation of the shape.booleanReturns whether this shape contains any points.toString()
-
Method Details
-
getShapeId
Returns the unique identifier of the shape.- Returns:
- the shape ID.
-
getShapeWkt
Returns the WKT representation of the shape.- Returns:
- the shape WKT.
-
getPointsInside
Returns the points that are inside this shape.- Returns:
- unmodifiable list of matched points.
-
hasPointsInside
public boolean hasPointsInside()Returns whether this shape contains any points.- Returns:
trueif points are inside.
-
builder
Creates a new builder forGeofenceMatch.- Returns:
- a new
GeofenceMatch.Builderinstance.
-
toString
-