Examples4Wings Bins
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.
Path parameters
| Parameter | Value | Description |
|---|---|---|
z | 1 | Zoom level |
Query parameters
| Parameter | Value | Description |
|---|---|---|
datasets[0] | public-global-presence:latest | AIS vessel presence dataset |
temporal-aggregation | false | Don't aggregate values across time |
num-bins | 9 | Number of bins to generate |
interval | DAY | Daily temporal resolution |
Request
# Make sure to replace [TOKEN] with your API Access Token
curl --location --globoff 'https://gateway.api.globalfishingwatch.org/v3/4wings/bins/1?datasets[0]=public-global-presence%3Alatest&temporal-aggregation=false&num-bins=9&interval=DAY' \
-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/1?datasets[0]=public-global-presence%3Alatest&temporal-aggregation=false&num-bins=9&interval=DAY',
{ headers: { Authorization: 'Bearer [TOKEN]' } }
)
const data = await res.json()Response
{
"total": 1,
"limit": null,
"offset": null,
"nextOffset": null,
"metadata": {},
"entries": [
[
0, 12.345678901234567, 56.7890123456789, 145.23456789012345, 289.34567890123456,
512.4567890123456, 789.0123456789012, 1234.5678901234567, 1890.1234567890123
]
]
}