# is-sea

> Check whether a geographic coordinate is in the sea or not on the earth.

Latest version **0.3.1** (published 2017-12-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-sea
pnpm add is-sea
yarn add is-sea
bun add is-sea
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2017-12-05 |
| First published | 2017-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 53 |
| Maintainers | simonepri |
| Keywords | is-land, is-water, is-waterbody, land, lands, water, waters, waterbody, waterbodies, get, earth, world |

## Links

- npm: https://www.npmjs.com/package/is-sea
- Repository: https://github.com/simonepri/is-sea
- Homepage: https://github.com/simonepri/is-sea#readme
- Issues: https://github.com/simonepri/is-sea/issues
- npm.io page: https://npm.io/package/is-sea

## Dependencies (2)

- [@geo-maps/earth-seas-10m](https://npm.io/package/@geo-maps/earth-seas-10m.md) ^0.6.0
- [geojson-geometries-lookup](https://npm.io/package/geojson-geometries-lookup.md) ^0.2.0

## Recent versions

- 0.3.1 (latest) — 2017-12-05
- 0.3.0 — 2017-12-05

## README

# is-sea
[![Travis CI](https://travis-ci.org/simonepri/is-sea.svg?branch=master)](https://travis-ci.org/simonepri/is-sea) [![Codecov](https://img.shields.io/codecov/c/github/simonepri/is-sea/master.svg)](https://codecov.io/gh/simonepri/is-sea) [![npm](https://img.shields.io/npm/dm/is-sea.svg)](https://www.npmjs.com/package/is-sea) [![npm version](https://img.shields.io/npm/v/is-sea.svg)](https://www.npmjs.com/package/is-sea) [![npm dependencies](https://david-dm.org/simonepri/is-sea.svg)](https://david-dm.org/simonepri/is-sea) [![npm dev dependencies](https://david-dm.org/simonepri/is-sea/dev-status.svg)](https://david-dm.org/simonepri/is-sea#info=devDependencies)
> 🌊 Check whether a geographic coordinate is in the sea or not on the earth.

<p align="center">
  <a href="http://simonepri.github.io/is-sea/"><img src="https://raw.githubusercontent.com/simonepri/is-sea/master/demo/index.png" width="800"/></a>
</p>

> Click on the map for a live preview.

## Install
```bash
$ npm install --save is-sea
```

## Usage
You can query any `(lat,lng)` pair on the earth.

```javascript
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
```
> The package internally uses [@geo-maps/earth-seas](https://github.com/simonepri/geo-maps/blob/master/info/earth-seas.md) map with 10m resolution.

## API
## get(lat, lng) ⇒ <code>Array.&lt;string&gt;</code>
Returns wheather the given point is in the sea or not.

**Returns**: <code>Array.&lt;string&gt;</code> - True if the point is in the sea, false otherwise.

| Param | Type | Description |
| --- | --- | --- |
| lat | <code>number</code> | The latitude of the point. |
| lng | <code>number</code> | The longitude of the point. |

## Authors
* **Simone Primarosa** - [simonepri](https://github.com/simonepri)

See also the list of [contributors](https://github.com/simonepri/world-country/contributors) who participated in this project.

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---
_Source: https://npm.io/package/is-sea · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
