Feat request neighbours (#3709)

Signed-off-by: Dane Evans <dane@goneepic.com>
This commit is contained in:
Dane Evans 2025-12-22 07:45:06 +11:00 committed by GitHub
parent 3e3dfe08e6
commit d33229c50f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 375 additions and 10 deletions

View file

@ -125,10 +125,10 @@ public class RadiusMarkerClusterer extends MarkerClusterer {
Iterator<MarkerWithLabel> it = mClonedMarkers.iterator();
while (it.hasNext()) {
MarkerWithLabel neighbour = it.next();
double distance = clusterPosition.distanceToAsDouble(neighbour.getPosition());
MarkerWithLabel neighbor = it.next();
double distance = clusterPosition.distanceToAsDouble(neighbor.getPosition());
if (distance <= mRadiusInMeters) {
cluster.add(neighbour);
cluster.add(neighbor);
it.remove();
}
}