border-ng-js

1.0.0 • Public • Published

🗺️ border-ng-js

A JavaScript package that provides a boolean result, true or false, indicating whether a provided coordinate falls within the borders of Nigeria 🇳🇬

Installation:

npm i border-ng-js

Usage:

// example.js
import checkBoundary from border-ng-js

checkBoundary(lat, lng) // PS: Latitude must come before longitude

// Practical example

const check1 = await checkBoundary(2.743751673926603, 7.322015625519072)
console.log(check1) // false

const check2 = await checkBoundary(6.762809634090966, 3.2435282387767383)
console.log(check2) // true

Readme

Keywords

none

Package Sidebar

Install

npm i border-ng-js

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

6.74 kB

Total Files

5

Last publish

Collaborators

  • ize-302