R/get_vessel_info.R
get_vessel_info.Rd
Base function to get vessel information from API and convert response to data frame
get_vessel_info(
query = NULL,
search_type = NULL,
dataset = "all",
key = gfw_auth()
)
search terms to identify vessel
type of search, may be 'basic','advanced', or 'id'
identity datasets to search against, default = 'all'
Authorization token. Can be obtained with gfw_auth function
There are three search types. basic
search takes features like MMSI,
IMO, callsign, shipname as inputs and identifies all vessels in the specified
dataset that match. advanced
search allows for the use of fuzzy matching with
terms such as LIKE. The id
search allows the user to search using a GFW vessel
id.
There are three identity databases available, "carrier_vessel"
, "support_vessel"
,
and "fishing_vessel"
. The user can also specify "all"
and search again all databases
at once. This is generally recommended.