# geolocation-validator

> A set of methods created to validate the location of a device from it's point of validation

Latest version **0.0.6** (published 2023-10-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install geolocation-validator
pnpm add geolocation-validator
yarn add geolocation-validator
bun add geolocation-validator
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2023-10-18 |
| First published | 2023-08-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 216 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | michaeluk |

## Links

- npm: https://www.npmjs.com/package/geolocation-validator
- Repository: https://github.com/Michael2004-ukpeh/geolocation-validator
- Homepage: https://michael2004-ukpeh.github.io/geolocation-validator/
- Issues: https://github.com/Michael2004-ukpeh/geolocation-validator.git/issues
- npm.io page: https://npm.io/package/geolocation-validator

## Dependencies (5)

- [ip](https://npm.io/package/ip.md) ^1.1.8
- [axios](https://npm.io/package/axios.md) ^1.4.0
- [ipdata](https://npm.io/package/ipdata.md) ^2.2.4
- [express](https://npm.io/package/express.md) ^4.18.2
- [geoip-lite](https://npm.io/package/geoip-lite.md) ^1.4.7

## Recent versions

- 0.0.6 (latest) — 2023-10-18
- 0.0.5 — 2023-10-17
- 0.0.4 — 2023-10-17
- 0.0.3 — 2023-10-16
- 0.0.2 — 2023-09-08
- 0.0.1 — 2023-08-30

## README

# Address Based Geolocation Validator

A set of methods created to validate the location of a device from it's point of validation

## Installation

```sh
npm install geolocation-validator --save
yarn add geolocation-validator
bower install geolocation-validator  --save
```

## Usage

```Javascript
import {GeoLocationValidator} from 'geolocation-validatior'

const geoLocator =  new GeoLocationValidator();

const myCoordinates:Coordinates =  {
    latitude: 4.825979675576107,
    longitude: 7.05675985088703
}

const pointOfValidaton: Coordinates =  {
    latitude:7.05675985088703,
    longitude:4.825979675576107
}

const validated =  await geoLocator.validateLocation(myCoordinates, pointofValidation, 0);

```

```sh
Output:
 {
   result:false
   message: 'Device is not presently within the range of validation'
}
```

**For more documentation: Check out the <a href='https://michael2004-ukpeh.github.io/geolocation-validator/'>docs</a>**

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