GpsDecomposer

class sitchlib.gps_decomposer.GpsDecomposer[source]

GPS Decomposer.

classmethod decompose(scan_document)[source]

Decompose a GPS event.

Parameters:scan_document (dict) – Geo json from GPS device.
Returns:
One two-item tuple in list. Position 0 is gps, position 1
is the validated geo scan. If the scan doesn’t validate, an empty list is returned.
Return type:list
classmethod scan_document_is_valid(scan_document)[source]

Validate the scan document.