An open API service indexing awesome lists of open source software.

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

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
```