simonepri / is-sea

🌊 Check whether a geographic coordinate is in the sea or not on the earth.
MIT License
50 stars 10 forks source link

isSea.get() is not a function but isSea() works #6

Open lennertVanSever opened 4 years ago

lennertVanSever commented 4 years ago

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
PloughingNorth commented 4 years ago

How to use it in Vue?

MyTuring commented 4 years ago

Excuse me,could you tell me how to use it in Vue?