findNearestEntity

open fun findNearestEntity(searchEntity: SearchEntity, callback: Consumer<Entity>)

Finds the nearest Entity based on the given SearchEntity.

The method checks all available EntityZones within the same property as the user's last known position and identifies the closest one. Once found, the nearest entity is returned through the given callback.

Parameters

searchEntity

the search criteria containing property ID and entity zones

callback

the callback to receive the nearest entity; will be called with null if none found