Home

Awesome

dobbyscan Node Simply Awesome

A very fast density based clustering JavaScript library for geographic points. Implements a variation of DBSCAN with great circle distance metric.

Example

const clusters = dobbyscan(points, radius, p => p.lon, p => p.lat);

API

dobbyscan(points, radius[, getLng, getLat])

Returns an array of clusters, where each cluster is an array of points (from the input array).

Performance

This library is incredibly fast — run bench.js to see it cluster 135k points in one second.

Install

npm install dobbyscan