1.0.3 • Published 7 years ago

fencery v1.0.3

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

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
})
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago