nearby-big-cities
Give me your coordinates and I'll tell you where the nearest cities (and their country) of at least 15000 people are. Uses k-nearest-neighbour algorithm, so it's fast. Works offline. Directly based on git+https://github.com/zeke/nearby-cities.git
Installation
npm install nearby-big-cities --save
Usage
const assert = const nearbyCities = const query = latitude: 344362755 longitude: -119705086 const cities = ; 'Santa Barbara' 'Goleta' 'Isla Vista' 'Ventura' assert
Tests
npm installnpm test
Dependencies
- sphere-knn: search for k nearest neighbors on a sphere
Dev Dependencies
- mocha: simple, flexible, fun test framework
- split2: split a Text Stream into a Line Stream, using Stream 3
- standard: JavaScript Standard Style
- through2: A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise
License
MIT