geost.bro.BroApi.get_objects#
- BroApi.get_objects(bro_ids: str | Iterable, object_type: str = 'CPT') list[bytes] [source]#
Retrieve BRO objects via API requests to the public BRO REST-API.
- Parameters:
bro_ids (str | Iterable) – Single BRO ID or Iterable of BRO ID’s
object_type (str, optional) – BRO object type. Can be CPT (Cone penetration tests), BHR-P (Soil cores), BHR-GT (Geotechnical cores), or BHR-G (Geological cores). By default “CPT”.
- Returns:
List of bytestrings containing the XML data of the requested BRO objects.
- Return type:
list[bytes]
- Raises:
Warning – When a non-existing BRO ID was given.
Warning – When the server does not respond to the request (40x error).