SkillAgentSearch skills...

Fencery

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

Install / Use

/learn @hkd987/Fencery
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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
})
View on GitHub
GitHub Stars6
CategoryDevelopment
Updated3y ago
Forks0

Languages

JavaScript

Security Score

75/100

Audited on Sep 6, 2022

No findings