public abstract class RegionEntity
extends java.lang.Object
RegionEntity abstract class includes various attributes about the telemetry
collection geo-fences associated with the badge. If a badge resides within a telemetry collection
geo-fence and requires location tracking, then the user's location will be reported to the
server. This class includes various properties such as latitude, longitude, and radius of a
telemetry collection geo-fence.| 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
RegionEntity. |
abstract double |
latitude()
Returns a double of the latitudinal coordinate of the telemetry collection geo-fence.
|
abstract double |
longitude()
Returns a double of the longitudinal coordinate of the telemetry collection geo-fence.
|
abstract float |
radius()
Returns a float of the radius of the telemetry collection geo-fence in meters.
|
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 telemetry collection geo-fence.
|
public abstract float radius()
public abstract double longitude()
public abstract double latitude()
public boolean withInRange(double lat1,
double lon1)
lat1 - the latitudinal coordinatelon1 - the longitudinal coordinatetrue if the latitudinal/longitudinal coordinate is within range of a
telemetry collection geofence;
false otherwise.public boolean withInRange(double distanceInMeters)
distanceInMeters - the distance in meterstrue if the distance in meters is less than the radius of the telemetry
collection geo-fence;
false otherwise.public double distanceInMeters(double lat1,
double lon1)
RegionEntity.lat1 - the given latitudinal coordinatelon1 - the given longitudinal coordinateRegionEntity.