Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/armandgrillet/land-or-sea
https://github.com/armandgrillet/land-or-sea
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/armandgrillet/land-or-sea
- Owner: armandgrillet
- Created: 2016-01-30T15:39:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-03T12:32:43.000Z (almost 9 years ago)
- Last Synced: 2024-12-11T02:08:10.078Z (29 days ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# land-or-sea
Tells if your coordinates are on land or in the middle of the sea.
## How to use it?
Install it:
```
npm install land-or-sea --save-dev
```Use it:
```javascript
var los = require('land-or-sea');var regexFromRule = los.checkForCoordinates(40.440625, -79.995886, function(field, error) {
if (!error) {
if (field === 'land') {
console.log('Location is on land');
} else {
console.log('Location is on sea');
}
} else {
console.log(error.message);
}
});```