1.1.0 • Published 7 years ago

gps2cl v1.1.0

Weekly downloads
4
License
-
Repository
github
Last release
7 years ago

Gps2cl

Convert GPS latitude longitude pairs to the closest craigslist domain.

Quick Start

npm install gps2cl

Usage

var gps = require('gps2cl'); var latitude = 30.2669; var longitude = 97.7428; gps.gps2cl(latitude, longitude); // returns "austin"

Accuracy

The output is approximate. The source data is just a list of coordinates, not actual boundaries. The algorithm just finds the minimum euclidean distance between the point in question and the known points. No error checking for points outside the United States.

Credit

I found the list of Craigslist subdomains on the internet somewhere, but I can't find them now.