1.0.1 • Published 8 years ago

@workpop/us-city-reverse-geocode v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

us-city-reverse-geocode

Description

Finds nearest US city to a coordinate using KDTrees. Uses US city data from http://www.opengeocode.org

Example

const findNearestCity = require('@workpop/us-city-reverse-geocode');

const nearestCity = findNearestCity(33.9922144, -118.4440958);
// returns { city: 'New York', state: 'NY', zip: '10001' }