public abstract static class OrgConfigEntity.LocationConditionEntity
extends java.lang.Object
OrgConfigEntity.LocationConditionEntity abstract class includes various attributes about the
badge enablement geo-fences associated with the badge. If a badge resides within a badge
enablement geo-fence, then the user's badge will be disabled. This class includes various
properties such as latitude, longitude, and radius of a badge enablement geo-fence.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
UNIT_FEET
Feet.
|
static java.lang.String |
UNIT_KILOMETER
Kilometers.
|
static java.lang.String |
UNIT_METER
Meters.
|
static java.lang.String |
UNIT_MILE
Miles.
|
| Modifier and Type | Method and Description |
|---|---|
double |
distanceInMeters(double lat1,
double lon1)
Returns a double of the distance in meters between the given latitude and longitude
parameters and the ones associated with the
OrgConfigEntity.LocationConditionEntity object. |
abstract double |
latitude()
Returns a double of the latitudinal coordinate of the badge enablement geo-fence.
|
abstract int |
length()
Returns an int of the radius of the badge enablement geo-fence in the alternate unit.
|
abstract double |
longitude()
Returns a double of the longitudinal coordinate of the badge enablement geo-fence.
|
abstract java.lang.String |
name()
Returns a String of the name of the badge enablement geo-fence.
|
abstract float |
radiusInMeter()
Returns a float of the radius of the badge enablement geo-fence in meters.
|
abstract java.lang.String |
unit()
Returns a String of the alternate unit of the radius of the badge enablement geo-fence.
|
boolean |
withInRange(double distanceInMeters)
Returns a boolean that represents whether or not a distance is within the bounds of the
radius.
|
boolean |
withInRange(double lat1,
double lon1)
Returns a boolean that represents whether or not a specific latitudinal/longitudinal
coordinate is within the range of a badge enablement geo-fence.
|
public static final java.lang.String UNIT_METER
public static final java.lang.String UNIT_KILOMETER
public static final java.lang.String UNIT_MILE
public static final java.lang.String UNIT_FEET
public boolean withInRange(double lat1,
double lon1)
lat1 - the latitudinal coordinatelon1 - the longitudinal coordinatetrue if the latitudinal/longitudinal coordinate is within range of a
badge enablement geo-fence;
false otherwise.public boolean withInRange(double distanceInMeters)
distanceInMeters - the distance in meterstrue if the distance in meters is less than the radius of the badge
enablement geo-fence;
false otherwise.public double distanceInMeters(double lat1,
double lon1)
OrgConfigEntity.LocationConditionEntity object.lat1 - the given latitudinal coordinatelon1 - the given longitudinal coordinateOrgConfigEntity.LocationConditionEntity object.public abstract double latitude()
public abstract java.lang.String name()
public abstract float radiusInMeter()
public abstract java.lang.String unit()
public abstract int length()
unit().public abstract double longitude()