public class FenceDetails
Contains information about the distance and location of the closest point of the fence.
Constructor and Description |
---|
FenceDetails(Entity fence,
java.lang.String properties,
double distance,
com.tomtom.online.sdk.common.location.LatLng closestPoint)
Contains information about the distance and location of the closest point of the fence.
|
Modifier and Type | Method and Description |
---|---|
com.tomtom.online.sdk.common.location.LatLng |
getClosestPoint()
The closest point on the fence to a geofenced object
|
double |
getDistance()
The distance in meters from a fence to the geofenced object.
|
Entity |
getFence()
Fence basic parameters
|
java.lang.String |
getProperties()
User-defined properties in JSON format.
|
public FenceDetails(Entity fence, java.lang.String properties, double distance, com.tomtom.online.sdk.common.location.LatLng closestPoint)
Contains information about the distance and location of the closest point of the fence.
fence
- Fence basic parameters (ID and name).properties
- User-defined properties in JSON format.distance
- The distance in meters from a fence to the geofenced object. The value can be negative if the object is inside a fence.closestPoint
- The closest point on the fence to a geofenced object's position.fence
- Fence basic parameters (ID and name).properties
- User-defined properties in JSON format.distance
- The distance in meters from a fence to the geofenced object. The value can be negative if the object is inside a fence.closestPoint
- The closest point on the fence to a geofenced object's position.public Entity getFence()
Fence basic parameters
(ID and name).
public java.lang.String getProperties()
User-defined properties in JSON format.
public double getDistance()
The distance in meters from a fence to the geofenced object.
The value can be negative if the object is inside a fence.
public com.tomtom.online.sdk.common.location.LatLng getClosestPoint()
The closest point on the fence to a geofenced object
's position.