{"id":17499450,"url":"https://github.com/simonepri/is-sea","last_synced_at":"2025-04-16T03:49:00.015Z","repository":{"id":27288723,"uuid":"113223983","full_name":"simonepri/is-sea","owner":"simonepri","description":"🌊 Check whether a geographic coordinate is in the sea or not on the earth.","archived":false,"fork":false,"pushed_at":"2022-08-08T01:33:05.000Z","size":2130,"stargazers_count":47,"open_issues_count":7,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-18T14:22:25.800Z","etag":null,"topics":["geojson","land","maps","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonepri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-05T19:26:39.000Z","updated_at":"2024-03-18T23:32:58.000Z","dependencies_parsed_at":"2022-07-24T20:30:05.347Z","dependency_job_id":null,"html_url":"https://github.com/simonepri/is-sea","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonepri%2Fis-sea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonepri%2Fis-sea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonepri%2Fis-sea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonepri%2Fis-sea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonepri","download_url":"https://codeload.github.com/simonepri/is-sea/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249192467,"owners_count":21227793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geojson","land","maps","nodejs"],"created_at":"2024-10-19T17:08:17.329Z","updated_at":"2025-04-16T03:48:59.999Z","avatar_url":"https://github.com/simonepri.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-sea\n[![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)\n\u003e 🌊 Check whether a geographic coordinate is in the sea or not on the earth.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://simonepri.github.io/is-sea/\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/simonepri/is-sea/master/demo/index.png\" width=\"700\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eClick on the map to see a live preview.\u003c/p\u003e\n\n## Synopsis\nGiven the latitude and longitude coordinates this package returns whether the point fall into a sea/ocean or not.\n\nThe package internally uses [@geo-maps/earth-seas](https://github.com/simonepri/geo-maps/blob/master/info/earth-seas.md) map with 10m resolution.\nThe accuracy of the map has not been tested but the [demo](http://simonepri.github.io/is-sea/) allows you to actually test it manually by just clicking on the map to see what it returns.\n\nDo you believe that this is useful? If so, \u003ca href=\"#start-of-content\"\u003esupport us with a ⭐️\u003c/a\u003e!\n\n## Install\n```bash\n$ npm install --save is-sea\n```\n\n## Usage\nYou can query any `(lat,lng)` pair on the earth.\n\n```javascript\nconst isSea = require('is-sea');\n\n// Query a point in Italy.\nisSea.get(41.9028, 12.4964);\n// =\u003e false\n\n// Query a point somewhere in Atlantic Ocean.\nisSea.get(40, -40);\n// =\u003e true\n```\n\n## API\n## get(lat, lng) ⇒ \u003ccode\u003eArray.\u0026lt;string\u0026gt;\u003c/code\u003e\nReturns wheather the given point is in the sea or not.\n\n**Returns**: \u003ccode\u003eArray.\u0026lt;string\u0026gt;\u003c/code\u003e - True if the point is in the sea, false otherwise.\n\n| Param | Type | Description |\n| --- | --- | --- |\n| lat | \u003ccode\u003enumber\u003c/code\u003e | The latitude of the point. |\n| lng | \u003ccode\u003enumber\u003c/code\u003e | The longitude of the point. |\n\n## Related\n* [country-iso](https://github.com/simonepri/country-iso): 🗺 Get ISO 3166-1 alpha-3 country code from geographic coordinates.\n\n## Authors\n* **Simone Primarosa** - [simonepri](https://github.com/simonepri)\n\nSee also the list of [contributors](https://github.com/simonepri/is-sea/contributors) who participated in this project.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonepri%2Fis-sea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonepri%2Fis-sea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonepri%2Fis-sea/lists"}