JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q28232F
  • License ISC

Tells if some coordinates are on land or in the middle of the sea.

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

Use 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);
    }
});