Examples4Wings Tiles
Get SAR vessel detections heatmap in MVT format
Example 4Wings tile request returning SAR vessel detections as MVT vector tiles.
Path parameters
| Parameter | Value | Description |
|---|---|---|
z/x/y | 0/0/0 | Tile coordinates |
Query parameters
| Parameter | Value | Description |
|---|---|---|
date-range | 2023-05-01,2023-10-20 | Filter to this time period |
datasets[0] | public-global-sar-presence:latest | SAR vessel detections dataset |
format | MVT | Tile output format |
interval | DAY | Daily temporal resolution |
temporal-aggregation | true | Aggregate values across time |
Request
# Make sure to replace [TOKEN] with your API Access Token
curl --location --globoff 'https://gateway.api.globalfishingwatch.org/v3/4wings/tile/heatmap/0/0/0?date-range=2023-05-01%2C2023-10-20&datasets[0]=public-global-sar-presence%3Alatest&format=MVT&interval=DAY&temporal-aggregation=true' \
-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/tile/heatmap/0/0/0?date-range=2023-05-01%2C2023-10-20&datasets[0]=public-global-sar-presence%3Alatest&format=MVT&interval=DAY&temporal-aggregation=true',
{ headers: { Authorization: 'Bearer [TOKEN]' } }
)
const blob = await res.blob()Response
If the request is successful, in this example the response will be a MVT file similar to this.