Convert GPS latitude longitude pairs to the closest craigslist domain.
npm install gps2cl
var gps = require('gps2cl'); var latitude = 30.2669; var longitude = 97.7428; gps.gps2cl(latitude, longitude); // returns "austin"
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.
I found the list of Craigslist subdomains on the internet somewhere, but I can't find them now.