fencery

1.0.3 • Public • Published

Fencery

Maintainability

A small helper to allow the developer to set up a geo-fence and determine if a input is inside the fence. This helper has zero dependents and will always try to be kept that way.


Usage

const FENCE = require('fencery')
 
const backyard = new FENCE([
  {
    name: 'NAME_OF_FACILITY',
    center: {
      // FLOAT NUMER 00.00000
      latitude: 11.11111,
      // FLOAT NUMBER 00.00000
      longitude: 11.11111,
    },
    // THIS IS METERS OUT FROM THE CENTER POINT
    radius: 75
  }
])
 
// RETURNS A TURE ?? FALSE
const check = backyard.isInside({
  latitude: 11.11111,
  longitude: 11.11111
})

Readme

Keywords

none

Package Sidebar

Install

npm i fencery

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

4.12 kB

Total Files

6

Last publish

Collaborators

  • hkd987