Skip to content

armandgrillet/land-or-sea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published