A passed units option, like { option: "meters" } , is not correctly taking into account by clustersDbscan().
It's always assumed that parameter maxDistance is in kilometers.
The bug seems to be introduced by this commit, where geokdbush was introduced and the units converting was removed.
Edit:
There's already an open PR fixing this issue (@turf/clusters-dbscan: Fix clustersDbscan not respecting units option)
A passed units option, like
{ option: "meters" }, is not correctly taking into account byclustersDbscan().It's always assumed that parameter
maxDistanceis in kilometers.The bug seems to be introduced by this commit, where
geokdbushwas introduced and the units converting was removed.Edit:
There's already an open PR fixing this issue (@turf/clusters-dbscan: Fix clustersDbscan not respecting units option)