geolocation-validator

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

Generated using TypeDoc