GeofenceRadiusPresets

Radius presets for the waypoint editor. The wire value is ALWAYS metres; the UI renders each value locale-aware via DistanceExtensions. 0 means "Off" (no circle). Imperial values are chosen to render as clean feet/mile figures. Do NOT copy Apple's imperial-only table — the selector list is locale-driven by forUnits.

Properties

Link copied to clipboard

Off, ~250 ft, ~500 ft, ~1000 ft, 1 mi, 2 mi, 5 mi (stored as metres).

Link copied to clipboard

Off, 100 m, 250 m, 500 m, 1 km, 2 km, 5 km.

Functions

Link copied to clipboard
fun forUnits(units: Config.DisplayConfig.DisplayUnits): List<Int>
Link copied to clipboard
fun nearest(meters: Int, units: Config.DisplayConfig.DisplayUnits): Int

The preset (in the active unit system) closest to meters — used to highlight the current selection.