# zipcodes-nearby-boost

> Find a list of zipcodes within a certain distance of a given zipcode.

Latest version **1.0.1** (published 2020-11-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install zipcodes-nearby-boost
pnpm add zipcodes-nearby-boost
yarn add zipcodes-nearby-boost
bun add zipcodes-nearby-boost
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-11-18 |
| First published | 2020-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.1 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Yuriy Vorobyov |
| Maintainers | yuriy_vorobyov96 |
| Keywords | zipcodes, javascript, zip, zipcode, radius, distance, longitude, latitude |

## Links

- npm: https://www.npmjs.com/package/zipcodes-nearby-boost
- Repository: https://github.com/YuriyVorobyov96/zipcodes-nearby-boost-version
- Homepage: https://github.com/YuriyVorobyov96/zipcodes-nearby-boost-version#readme
- Issues: https://github.com/YuriyVorobyov96/zipcodes-nearby-boost-version/issues
- npm.io page: https://npm.io/package/zipcodes-nearby-boost

## Dependencies (3)

- [geolib](https://npm.io/package/geolib.md) ^2.0.24
- [lodash](https://npm.io/package/lodash.md) ^4.17.20
- [fast-csv](https://npm.io/package/fast-csv.md) ^2.5.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-11-18
- 1.0.0 — 2020-11-18

## README

[![NPM Downloads](https://img.shields.io/npm/dt/zipcodes-nearby-boost.svg?style=for-the-badge)](https://www.npmjs.com/package/zipcodes-nearby-boost)
[![NPM Version](https://img.shields.io/npm/v/zipcodes-nearby-boost.svg?style=for-the-badge)](https://www.npmjs.com/package/zipcodes-nearby-boost)
[![License](https://img.shields.io/github/license/YuriyVorobyov96/zipcodes-nearby-boost-version.svg?style=for-the-badge)](https://github.com/YuriyVorobyov96/zipcodes-nearby-boost-version/blob/master/LICENSE)

# Zipcodes near by (Boosted version)

Find a list of zipcodes within a certain distance of a given zipcode.

## Installation

    npm install zipcodes-nearby-boost

## Usage

The method `near(zipcode|coordinates, distance[, options])` takes 2 to 3 arguments.

* First is the zipcode or geo-coordinates (long/lat) to search around
* Second is the distance (in meters) to search within
* Third is an optional object with the following attributes:
  * `datafile`: name for the CSV file containing zipcodes coordinates. By default it looks for a file `zipcodes.csv` in the same folder
  * `zipcode`: name of the column in the CSV file containing the zipcode. By default it is `Zipcode`
  * `long`: name of the column in the CSV file containing the zipcode longitude. By default it is `Long`
  * `lat`: name of the column in the CSV file containing the zipcode latitude. By default it is 'Lat'

For examples:

```
const zipcodes = require('zipcodes-nearby-boost');

// find zipcodes within 10km from 95020 using the default datafile "zipcodes.csv"
nearby = await zipcodes.near('95020', 10000);

// find zipcodes within 10km from a location given by geo-coordinates using the default datafile "zipcodes.csv"
nearby = await zipcodes.near({ longitude: 78.8, latitude: 48.3 }, 10000);

```

## Data file

The data file with zipcodes coordinates must be supplied.  We have include one
for USA to use.  It can be replaced by zipcodes (or postal codes) from any country
as long as the file contains the zipcode, the longitude, and the latitude.

You can download an updated file for the USA at <http://federalgovernmentzipcodes.us/>


## License

[MIT](https://github.com/YuriyVorobyov96/zipcodes-nearby-boost-version/blob/master/LICENSE)


## Author Information

Quoc Vu  

* https://linkedin.com/in/quocvu  
* https://github.com/quocvu

## Boost Version Author Information

Vorobyov Yuriy  

* https://linkedin.com/in/yuriy-vorobyov-b27b871a8/
* https://github.com/yuriyvorobyov96

---
_Source: https://npm.io/package/zipcodes-nearby-boost · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
