a simple 'plugin' for doing next nearest neighbor with Leaflet vector layers. fork, copy, download, learn about it on GitHub.