REST API to access processed sonar data from SonaSoft.
This API is intended to be used to retrieve processed sonar data from SonaSoft, and to provide a means to control SonaSoft. It gives access to the live, ping-to-ping data as well as the history data that is stored locally in a database.
Data can be requested as JSON. Using these interactive docs to test the API is significantly slower than using the API directly, so keep that in mind and test with curl or a similar tool to get a better idea of the performance.
get /api/history_dataGet the latest Local History Mapping data.
This endpoint returns the latest Local History Mapping data from the history database. This includes gridded bottom and inwater detections within the specified radius of the given latitude and longitude. If since_timestamp_utc is specified, then only data that has been collected or updated since that time will be returned. If since_timestamp_utc is not specified, then all the data in the radius will be returned.
The limit and skip parameters can be used to paginate through the data. The total number of records available is returned in the X-Grids-Count header.
{
"gridded_inwater_detections" : [ {
"longitude_degrees" : 2.027123023002322,
"latitude_degrees" : 3.616076749251911,
"timestamp_utc" : 9.301444243932576,
"deepest_depth_meters" : 1.0246457001441578,
"is_tide_corrected" : true,
"uploaded_to_cloud" : true,
"grid_interval_meters" : 4.145608029883936,
"target_strength_db" : 7.386281948385884,
"shallowest_depth_meters" : 1.4894159098541704,
"number_of_points" : 1
}, {
"longitude_degrees" : 2.027123023002322,
"latitude_degrees" : 3.616076749251911,
"timestamp_utc" : 9.301444243932576,
"deepest_depth_meters" : 1.0246457001441578,
"is_tide_corrected" : true,
"uploaded_to_cloud" : true,
"grid_interval_meters" : 4.145608029883936,
"target_strength_db" : 7.386281948385884,
"shallowest_depth_meters" : 1.4894159098541704,
"number_of_points" : 1
} ],
"gridded_bottom_detections" : [ {
"longitude_degrees" : 1.4658129805029452,
"latitude_degrees" : 6.027456183070403,
"timestamp_utc" : 0.8008281904610115,
"depth_meters" : 7.061401241503109,
"is_tide_corrected" : true,
"uploaded_to_cloud" : true,
"grid_interval_meters" : 5.962133916683182,
"target_strength_db" : 5.637376656633329,
"number_of_points" : 2
}, {
"longitude_degrees" : 1.4658129805029452,
"latitude_degrees" : 6.027456183070403,
"timestamp_utc" : 0.8008281904610115,
"depth_meters" : 7.061401241503109,
"is_tide_corrected" : true,
"uploaded_to_cloud" : true,
"grid_interval_meters" : 5.962133916683182,
"target_strength_db" : 5.637376656633329,
"number_of_points" : 2
} ]
}
{
"detail" : [ {
"msg" : "msg",
"loc" : [ "ValidationError_loc_inner", "ValidationError_loc_inner" ],
"type" : "type"
}, {
"msg" : "msg",
"loc" : [ "ValidationError_loc_inner", "ValidationError_loc_inner" ],
"type" : "type"
} ]
}
application/jsonget /api/processor_settings{
"current_squelch_db" : 5.962133916683182,
"minimum_squelch_db" : 6.027456183070403,
"timestamp_utc" : 0.8008281904610115,
"maximum_squelch_db" : 1.4658129805029452,
"detect_bottom_enabled" : true,
"auto_squelch_mode_enabled" : true
}
application/jsonpatch /api/processor_settingsUpdate the current processor settings.
This endpoint is used to change the current processor settings. The settings included in the request will be updated, the rest will be left unchanged.
application/json{
"current_squelch_db" : 5.962133916683182,
"minimum_squelch_db" : 6.027456183070403,
"timestamp_utc" : 0.8008281904610115,
"maximum_squelch_db" : 1.4658129805029452,
"detect_bottom_enabled" : true,
"auto_squelch_mode_enabled" : true
}
{
"detail" : [ {
"msg" : "msg",
"loc" : [ "ValidationError_loc_inner", "ValidationError_loc_inner" ],
"type" : "type"
}, {
"msg" : "msg",
"loc" : [ "ValidationError_loc_inner", "ValidationError_loc_inner" ],
"type" : "type"
} ]
}
application/jsonget /api/target_dataGet the latest realtime detection data.
This endpoint returns the latest detection data from the realtime processor. This includes realtime detections from the latest ping on any inwater targets as well as the latest detections from the latest ping on any bottom targets.
{
"timestamp_utc" : 0.8008281904610115,
"heading" : {
"heading_type" : "",
"heading" : 6.027456183070403
},
"bottom_detections" : [ {
"down_range_meters" : 7.061401241503109,
"depth_meters" : 9.301444243932576,
"target_strength_db" : 3.616076749251911,
"cross_range_meters" : 2.3021358869347655
}, {
"down_range_meters" : 7.061401241503109,
"depth_meters" : 9.301444243932576,
"target_strength_db" : 3.616076749251911,
"cross_range_meters" : 2.3021358869347655
} ],
"serial_number" : "serial_number",
"position" : {
"longitude_degrees" : 5.962133916683182,
"latitude_degrees" : 1.4658129805029452,
"altitude_meters" : 5.637376656633329
},
"inwater_detections" : [ {
"inwater_detection_group" : [ {
"down_range_meters" : 7.061401241503109,
"depth_meters" : 9.301444243932576,
"target_strength_db" : 3.616076749251911,
"cross_range_meters" : 2.3021358869347655
}, {
"down_range_meters" : 7.061401241503109,
"depth_meters" : 9.301444243932576,
"target_strength_db" : 3.616076749251911,
"cross_range_meters" : 2.3021358869347655
} ]
}, {
"inwater_detection_group" : [ {
"down_range_meters" : 7.061401241503109,
"depth_meters" : 9.301444243932576,
"target_strength_db" : 3.616076749251911,
"cross_range_meters" : 2.3021358869347655
}, {
"down_range_meters" : 7.061401241503109,
"depth_meters" : 9.301444243932576,
"target_strength_db" : 3.616076749251911,
"cross_range_meters" : 2.3021358869347655
} ]
} ],
"maximum_depth_meters" : 2.027123023002322,
"maximum_range_index" : 4
}
application/jsonDetection - DetectionFOVType - FOVTypeGriddedBottomDetection - GriddedBottomDetectionGriddedInwaterDetection - GriddedInwaterDetectionHTTPValidationError - HTTPValidationErrorHeading - HeadingHeadingType - HeadingTypeHistoryData - HistoryDataInwaterDetectionGroup - InwaterDetectionGroupPosition - PositionProcessorSettings - ProcessorSettingsProcessorSettingsUpdate - ProcessorSettingsUpdateSystemType - SystemTypeTargetData - TargetDataValidationError - ValidationErrorValidationError_loc_inner - Detection - Detection UpGriddedBottomDetection - GriddedBottomDetection UpGriddedInwaterDetection - GriddedInwaterDetection UpHTTPValidationError - HTTPValidationError UpHeading - Heading UpHistoryData - HistoryData UpInwaterDetectionGroup - InwaterDetectionGroup UpPosition - Position UpProcessorSettings - ProcessorSettings UpProcessorSettingsUpdate - ProcessorSettingsUpdate UpTargetData - TargetData Up