Class GeofencePoint
java.lang.Object
com.cercalia.sdk.model.geofencing.GeofencePoint
Point to check against geofences.
-
Constructor Summary
ConstructorsConstructorDescriptionGeofencePoint(@NotNull String id, @NotNull Coordinate coord) Creates a newGeofencePoint. -
Method Summary
Modifier and TypeMethodDescription@NotNull CoordinategetCoord()Returns the point coordinates.@NotNull StringgetId()Returns the unique identifier for the point.static @NotNull GeofencePointCreates a newGeofencePointwith coordinates.toString()
-
Constructor Details
-
GeofencePoint
Creates a newGeofencePoint.- Parameters:
id- unique identifier for the point.coord- point coordinates.
-
-
Method Details
-
of
@NotNull public static @NotNull GeofencePoint of(@NotNull @NotNull String id, double lat, double lng) Creates a newGeofencePointwith coordinates.- Parameters:
id- unique identifier.lat- latitude.lng- longitude.- Returns:
- a new
GeofencePoint.
-
getId
Returns the unique identifier for the point.- Returns:
- the point ID.
-
getCoord
Returns the point coordinates.- Returns:
- the coordinate.
-
toString
-