Thanks for this awesome project! I found a little mistake in the README, you give the following example:
const isSea = require('is-sea');
// Query a point in Italy.
isSea.get(41.9028, 12.4964);
// => false
// Query a point somewhere in Atlantic Ocean.
isSea.get(40, -40);
// => true
But if you execute that example you will get the following error:
TypeError: isSea.get is not a function
The solution is to use isSea(...)
const isSea = require('is-sea');
// Query a point in Italy.
isSea(41.9028, 12.4964);
// => false
// Query a point somewhere in Atlantic Ocean.
isSea(40, -40);
// => true
Thanks for this awesome project! I found a little mistake in the README, you give the following example:
But if you execute that example you will get the following error:
The solution is to use isSea(...)