find nearest from given point
This block is part of the object group and was last modified in core v10.4.28.
find nearest from given point v10.4.28 In pins 2
- from point required
objectObject{ latitude: 52.518611, longitude: 13.408056 }
- points required
arrayArray[Object{ latitude: 52.518611, longitude: 13.408056 }, Object{ latitude: 53.518611, longitude: 14.408056 }]
Out pins 1
- point
object
Returns the element of points closest to from_point by haversine great-circle distance, as the ORIGINAL array element (not a copy). Entries without numeric latitude/longitude keys are skipped. Outputs nil when from_point is missing or has non-numeric coordinates, or points is empty. The distance itself is not output.
A typical wiring for find nearest from given point: the point out pin feeds custom field.

Version history
Introduced in v10.4.28.
Back to
object Return to the main group to view all sub-groups Back to geo Return to the group to view all blocks within this group
