@globalfishingwatch/marine-regions
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Marine Regions

A set of functions to retrieve localized list of marine regions

Install

yarn

yarn add @globalfishingwatch/marine-regions

npm

npm i @globalfishingwatch/marine-regions --save

Usage

Get EEZ regions

import { getEEZ } from '@globalfishingwatch/marine-regions'
const regions = getEEZ({ locale: MarineRegionsLocale.en })
Output

console.log(regions)
[
  { id: 5670, label: 'Albanian Exclusive Economic Zone' },
  { id: 8378, label: 'Algerian Exclusive Economic Zone' },
  { id: 8444, label: 'American Samoa Exclusive Economic Zone' },
  ....
]

Get MPA regions

import { getMPA } from '@globalfishingwatch/marine-regions'
const regions = getMPA()
Output

console.log(regions)
[
  {"id": 12880, "label": "100_Daeseom"},
  {"id": 12910, "label": "101_Hogamseom"},
  {"id": 12892, "label": "102_Galmaeseom"},
  ....
]

Get RFMO regions

import { getRFMO } from '@globalfishingwatch/marine-regions'
const regions = getRFMO({ locale: MarineRegionsLocale.en })
Output

console.log(regions)
[
  { id: 'CCSBT', label: 'CCSBT' },
  { id: 'IATTC', label: 'IATTC' },
  { id: 'ICCAT', label: 'ICCAT' },
  { id: 'IOTC', label: 'IOTC' },
  { id: 'WCPFC', label: 'WCPFC' },
  ....
]

Readme

Keywords

none

Package Sidebar

Install

npm i @globalfishingwatch/marine-regions

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

1.85 MB

Total Files

16

Last publish

Collaborators

  • javiabia
  • rdgfuentes
  • j8seangel
  • global-fishing-watch