sdk-geofencing / com.tomtom.online.sdk.geofencing.report / FenceDetails / <init>

<init>

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

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.