Socket
Socket
Sign inDemoInstall

geonames-us-util

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    geonames-us-util

memory index from geonames


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
2.67 MB
Created
Weekly downloads
 

Readme

Source

Small utility library that helps one to build memory hash with desired data from GeoNames.

data used: http://download.geonames.org/export/zip/US.zip

how to use:

var index = require('geonames-us-util')('postal', ['county', 'county_code']);
console.log(index[33445]);
// { county: 'Palm Beach', county_code: '099' }

OR

var index = require('geonames-us-util')('postal');
console.log(index[33445]);
/*
{ country: 'US',
  postal: '33445',
  place: 'Delray Beach',
  state: 'Florida',
  state_code: 'FL',
  county: 'Palm Beach',
  county_code: '099',
  community: '',
  community_code: '',
  latitude: '26.4564',
  longitude: '-80.1054',
  accuracy: '' }
*/

Keywords

FAQs

Last updated on 08 Sep 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc