ViPaq Protocol
ViPaq is protocol designed for compactly encoding packing information of a single bin.
By using efficient binary-level encoding, ViPaq enables:
- β Compact storage of packing data
- β Reduced bandwidth for data transfer
- β Easy sharing via a concise copy-pastable string
β οΈ ViPaq is experimental and may change.
Consult the documentation for your Binacle.Net version, for availability and support.
π― Purpose
Binacle.Netβs API provides detailed packing responses that can get large with many items.
ViPaq compresses this data into a simple, portable string formatβideal for storage, transmission, or quick sharing.
βοΈ How It Works
ViPaq serializes the binβs dimensions along with each itemβs size and coordinates into a single encoded string, preserving all necessary data for visualization and decoding.
π Data Structure
[Header]
[Number of Items]
[Bin: Length, Width, Height]
[Item 1: Length, Width, Height, X, Y, Z]
[Item 2: Length, Width, Height, X, Y, Z]
...
[Item N: Length, Width, Height, X, Y, Z]
π οΈ Components
- Header: Decoding metadata
- Number of Items: Total encoded items
- Bin: Dimensions β Length, Width, Height
- Items: Each with dimensions (L, W, H) and position coordinates (X, Y, Z)
π Encoding & Compression Techniques
- Base64 Encoding: Converts binary data into a transfer-friendly string
- Variable Length Encoding (VLE): Reduces storage by minimizing redundant data
- Gzip Compression: Automatically applied for larger data, enhancing compactness