Skip to main content

Module geofence

Module geofence 

Source
Expand description

Geodesic geofence containment with position uncertainty.

Fences are polygons on WGS84. Vertices use geodetic latitude and longitude, while ellipsoidal height is ignored. Boundary distances are metres, positive inside the fence and negative outside it.

Structs§

CrossingEvent
Crossing event reported for a sequence sample.
Fence
Geodesic polygon fence on WGS84.
GeofencePositionEstimate
Position estimate used by probabilistic crossing detection.
ProbabilityHysteresis
Hysteresis confidence for probabilistic crossing detection.
ProbabilityOptions
Options for containment_probability_with_options.

Enums§

CrossingKind
Crossing event kind.
GeofenceError
Error returned by geofence construction and evaluation.
PositionUncertainty
Position uncertainty accepted by probabilistic geofencing.
ProbabilityMethod
Probability integration method.

Constants§

GEOFENCE_BOUNDARY_TOLERANCE_M
Boundary tolerance used when classifying a point on an edge, in metres.
PLANAR_FAST_PATH_MAX_RADIUS_M
Maximum anchor-to-vertex, anchor-to-query, and edge length for the planar path.

Functions§

containment
Boolean containment for one position and fence.
containment_probability
Containment probability from position uncertainty.
containment_probability_with_options
Containment probability with an explicit integration method.
crossing
Boolean crossing detection over a position sequence.
crossing_probability
Probabilistic crossing detection with probability hysteresis.
crossing_probability_with_options
Probabilistic crossing detection with explicit probability options.
distance_to_boundary
Signed boundary distance for one position and fence, in metres.