Skip to content
/ Fencery Public

Allows developer to get a boolean back as to wheather the input lat/lng is inside a geoFence

License

Notifications You must be signed in to change notification settings

hkd987/Fencery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Allows developer to get a boolean back as to wheather the input lat/lng is inside a geoFence

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published