@globalfishingwatch/marine-regions
v0.1.1
Published
A set of functions to retrieve localized list of marine regions
Downloads
1
Keywords
Readme
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 })
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()
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 })
console.log(regions)
[
{ id: 'CCSBT', label: 'CCSBT' },
{ id: 'IATTC', label: 'IATTC' },
{ id: 'ICCAT', label: 'ICCAT' },
{ id: 'IOTC', label: 'IOTC' },
{ id: 'WCPFC', label: 'WCPFC' },
....
]