sdk-geofencing / com.tomtom.online.sdk.geofencing.report / FenceDetails

FenceDetails

class FenceDetails

Contains information about the distance and location of the closest point of the fence.

Parameters

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.

Constructors

<init>

FenceDetails(fence: Entity, properties: String, distance: Double, closestPoint: LatLng)

Contains information about the distance and location of the closest point of the fence.

Properties

closestPoint

val closestPoint: LatLng

The closest point on the fence to a geofenced object's position.

distance

val distance: Double

The distance in meters from a fence to the geofenced object. The value can be negative if the object is inside a fence.

fence

val fence: Entity

Fence basic parameters (ID and name).

properties

val properties: String

User-defined properties in JSON format.