Searching for Vessels/Polygons
Allows for searching for vessels/polygons in the Oceanbolt Data Platform.
- class oceanbolt.sdk.data.entities.Search(client: APIClient)[source]
The
Search
instance allows for searching polygons and vessels.
Example
from oceanbolt.sdk.client import APIClient
from oceanbolt.sdk.data.entities import Search
base_client = APIClient("<token>")
vessels_result = Search(base_client).search_vessels("tenacity")
base_client = APIClient("<token>")
vessels_result = Search(base_client).search_vessels("tenacity")
Arguments
- class oceanbolt.sdk.data.entities.Search.search_vessels
Searches for vessels in the Oceanbolt Database
- Parameters:
q (str) – The search query
- class oceanbolt.sdk.data.entities.Search.search_polygons
Searches for polygons (ports/terminals) in the Oceanbolt Database
- Parameters:
q (str) – The search query
Response
Vessels search:
- class oceanbolt.com.entities_v3.types.Vessel(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]
Polygons search: