Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

reversegeocode-to-zip

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Issues
File Explorer

Advanced tools

reversegeocode-to-zip

Uses Google's geocoding API to convert longitude and latitude to a zipcode.

    1.0.7latest

Version published
Maintainers
1
Weekly downloads
1

Weekly downloads

Readme

Source

reversegeocode-to-zip

npm version

Uses Google's geocoding API to convert longitude and latitude to a zipcode. Requires supplying a google maps API key.

Installation

yarn add reversegeocode-to-zip

or

npm i reversegeocode-to-zip

Example

import reverseGeocode from "reversegeocode-to-zip" const region = { latitude: 36.98823868538418, longitude: -122.00553903356194, }; const GOOGLE_API_KEY = "123123"; reverseGeocode(region, GOOGLE_API_KEY) .then(zipcode => console.log(zipcode)) .catch(err => console.log(err));

Note: don't actually put your API key in your code. Import it as an environment variable.

Testing

Clone repo:

git clone https://github.com/osamaq/reversegeocode-to-zip.git && cd reversegeocode-to-zip

Install dependencies (jest):

yarn

or

npm i

Run tests:

yarn test

or

npm test

Todo

  1. Write tests.

Keywords

FAQs

What is reversegeocode-to-zip?

Uses Google's geocoding API to convert longitude and latitude to a zipcode.

Is reversegeocode-to-zip popular?

The npm package reversegeocode-to-zip receives a total of 1 weekly downloads. As such, reversegeocode-to-zip popularity was classified as not popular.

Is reversegeocode-to-zip well maintained?

We found that reversegeocode-to-zip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 19 Oct 2019

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc