This function searches for vessels nearby popup events. It uses the Global Fishing Watch (GFW) AIS database and to Tag of Pelagic Predator (TOPP, 'http://gtopp.org/') database and searches within a time window specified by the user, centered on the popup date, with a spatial box specified by the user in latitude and longitude degrees.
1 2 3 4 5  | searchVessel(con, project, ptt = "153499", spatWin = 1, tempWin = 24,
  gears = c("drifting_longlines", "trawlers", "purse_seines",
  "unknown_fishing", "squid_jigger", "pole_and_line", "drifting_gillnets",
  "no_idea_what_it_is", "research other_fishing", "set_longlines", "troller",
  "set_gillnets", "pots_and_traps"))
 | 
con | 
 a connection to the OIB - TOPP database.  | 
project | 
 Google Cloud Platform project name. This is needed to query the GFW database in bigQuery.  | 
ptt | 
 is the argos ID. If the tag was reused that it is possible to have multiple tags for the sam ptt. In that case use latest date.  | 
spatWin | 
 spatial window in degrees  | 
tempWin | 
 temporal window in hours  | 
gears | 
 fishing gears to search  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.