https://github.com/ize-302/border-ng-js
A JavaScript package that indicates whether a provided coordinate falls within the borders of Nigeria
https://github.com/ize-302/border-ng-js
border boundary coordinates nigeria
Last synced: about 21 hours ago
JSON representation
A JavaScript package that indicates whether a provided coordinate falls within the borders of Nigeria
- Host: GitHub
- URL: https://github.com/ize-302/border-ng-js
- Owner: ize-302
- Created: 2023-09-24T15:13:12.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-24T20:05:52.000Z (about 2 years ago)
- Last Synced: 2025-10-11T13:09:38.371Z (16 days ago)
- Topics: border, boundary, coordinates, nigeria
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/border-ng-js?activeTab=readme
- Size: 394 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# πΊοΈ 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:
```bash
npm i border-ng-js
```
#### Usage:
```bash
// 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
```