Class GeofencePoint

java.lang.Object
com.cercalia.sdk.model.geofencing.GeofencePoint

public final class GeofencePoint extends Object
Point to check against geofences.
  • Constructor Details

    • GeofencePoint

      public GeofencePoint(@NotNull @NotNull String id, @NotNull @NotNull Coordinate coord)
      Creates a new GeofencePoint.
      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 new GeofencePoint with coordinates.
      Parameters:
      id - unique identifier.
      lat - latitude.
      lng - longitude.
      Returns:
      a new GeofencePoint.
    • getId

      @NotNull public @NotNull String getId()
      Returns the unique identifier for the point.
      Returns:
      the point ID.
    • getCoord

      @NotNull public @NotNull Coordinate getCoord()
      Returns the point coordinates.
      Returns:
      the coordinate.
    • toString

      public String toString()
      Overrides:
      toString in class Object