NEWS.md
gfwr
was updated to work with version 3 of our APIs. This results in various breaking changes in parameter names and output formats. We aim to list here the major modifications but please also check the API documentation and the migration guide if anything is new or missing.
v1.1.0
get_raster()
communicates with the 4Wings API to get fishing effortget_vessel_info()
communicates with the Vessels APIget_event()
communicates with the Events APIget_events_stats()
to get events statistics worldwide or for a specific regionget_last_report()
to check status of last API request to get_raster()
Note: Some APIs were not implemented because they were primarily designed for a frontend application rather than for data download. These APIs are:
/v3/4wings/generate-png
/v3/4wings/tile/:type/:z/:x/:y
/v3/4wings/interaction/{z}/{x}/{y}/{cells}
/v3/4wings/bins/:z
print_request
that will print the API request and will be useful when requesting support. Please describe the problem, send a simplified script and copy the string of the request when filling an issue.region
argument for get_raster()
andget_event()
now accepts sf
polygons rather than GeoJSON stringsget_vessel_info()
search_type = search
replaces search type = "basic"
and "advanced"
. Instead, use parameter query
for basic search or parameter where
for advanced search (i.e. when using SQL expressions)includes
allows the search to include ownership information, public authorizations from public registries, and the criteria for matching with AIS dataget_event()
confidence
(1 to 4) allows filtering for high confidence port visits.event_type = "FISHING"
instead of event_type = "fishing"
)sf
objectget_raster()
spatial_resolution = "LOW"
instead of spatial_resolution = "low"
)region
argument now accepts sf
polygons rather than a GeoJSON string.start_date
and end_date
replace date_range
for consistency with other functionsUSER_JSON
has been renamed to USER_SHAPEFILE
for clarity (addresses #161)In addition to your own JSON region, can now pass EEZ or MPA id to get_raster()
function to query specific region
get_region_id()
now takes id and returns label. This allows you to get the label for the id values returned by certain endpoints (e.g. get_event()
)
Considerable speed increases in get_event()
function
get_event()
prints "Your request returned zero results"
and returns NULL
when the API response contains no results instead of causing an error.get_raster()
: requires group_by
and appropriate parameter name is gearType
Added a NEWS.md
file to track changes to the package.