Given a point layer, identify all points within distance K from input point and return array of ID's.
Proposed solution
The algorithms:
nearby_points = []
for neighbor_point in points:
if current_point != neighbor_point:
if distance(current_point, neighbor_point) < K:
nearby_points.append(neighbor_point.ID)
Problem
Given a point layer, identify all points within distance K from input point and return array of ID's.
Proposed solution
The algorithms:
Expected outcome
A list of nearby nodes ID from a node.