Package Exports
- land-or-sea
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (land-or-sea) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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-devUse it:
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);
}
});