0.0.6 • Published 7 months ago

geolocation-validator v0.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

Address Based Geolocation Validator

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

Installation

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

Usage

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);
Output:
 {
   result:false
   message: 'Device is not presently within the range of validation'
}

For more documentation: Check out the docs

0.0.3

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.6

7 months ago

0.0.2

8 months ago

0.0.1

8 months ago