@workpop/us-city-reverse-geocode

1.0.1 • Public • Published

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' }

Readme

Keywords

Package Sidebar

Install

npm i @workpop/us-city-reverse-geocode

Weekly Downloads

2

Version

1.0.1

License

ISC

Last publish

Collaborators

  • rafeworkpop
  • workpopci