Examples4Wings Bins
Get SAR vessel detections bins for zoom 2 in a hourly interval
Example 4Wings bins request for SAR vessel detections at zoom 2 with an hourly interval.
Path parameters
| Parameter | Value | Description |
|---|---|---|
z | 2 | Zoom level |
Query parameters
| Parameter | Value | Description |
|---|---|---|
datasets[0] | public-global-sar-presence:latest | SAR vessel detections dataset |
temporal-aggregation | false | Don't aggregate values across time |
num-bins | 9 | Number of bins to generate |
interval | HOUR | Hourly temporal resolution |
Request
# Make sure to replace [TOKEN] with your API Access Token
curl --location --globoff 'https://gateway.api.globalfishingwatch.org/v3/4wings/bins/2?datasets[0]=public-global-sar-presence%3Alatest&temporal-aggregation=false&num-bins=9&interval=HOUR' \
-H "Authorization: Bearer [TOKEN]" \// Make sure to replace [TOKEN] with your API Access Token.
const res = await fetch(
'https://gateway.api.globalfishingwatch.org/v3/4wings/bins/2?datasets[0]=public-global-sar-presence%3Alatest&temporal-aggregation=false&num-bins=9&interval=HOUR',
{ headers: { Authorization: 'Bearer [TOKEN]' } }
)
const data = await res.json()Response
{
"total": 1,
"limit": null,
"offset": null,
"nextOffset": null,
"metadata": {},
"entries": [
[
0, 0.6141656839622642, 2.13199378330373, 4.751082251082251, 8.484912146676853,
13.063675088131609, 28.508133561643834, 45.34335191082803, 58.447841726618705
]
]
}Get AIS apparent fishing effort bins for zoom 1 in a daily interval
Example 4Wings bins request for the AIS apparent fishing effort dataset at zoom 1 with a daily interval.
Get AIS vessel presence bins for zoom 1 in a daily interval
Example 4Wings bins request for the AIS vessel presence dataset at zoom 1 with a daily interval.