久章智能JZLOG
产品接口 · API · WECHAT ARTICLE

3D binning API call

The Jiuzhang team recently made an API calling interface for a three-dimensional boxing applet. Now open for testing, welcome to test and use.

The Jiuzhang team recently made an API calling interface for a three-dimensional boxing applet. Now open for testing, welcome to test and use.

Way 1:

Execute the command under Linux:

$ curl -X POST -H "Content-Type: application/json" http://47.103.101.234:3565/packing3d -d @./test_input.json

Way 2:

Use a RestFul API gadget:

http://47.103.101.234:3565/packing3d

Input:

"boxes": {

"4409": { "l": 293, "w": 293, "h": 137},

"9094": { "l": 293, "w": 243, "h": 212},

"200011152": { "l": 285, "w": 165, "h": 137},

"200011153": { "l": 255, "w": 125, "h": 150}

},

"orders": {

"SO17": {

"sku1": { "num": 1, "l": 55, "w": 55, "h": 180},

"sku2": { "num": 1, "l": 180, "w": 55, "h": 55},

"sku3": { "num": 1, "l": 50, "w": 50, "h": 185}

},

"SO54": {

"sku4": { "num": 1, "l": 53, "w": 53, "h": 64},

"sku5": { "num": 3, "l": 130, "w": 55, "h": 40},

"sku6": { "num": 5, "l": 145, "w": 145, "h": 35}

Output:

{"placements": {"SO17": {"status": 1, "box": "200011153", "items": {"sku1/1": {"anchor_x": 8, "anchor_y": 56, "anchor_z": 64, "rotation": 2, "rotated_l": 180, "rotated_w": 55, "rotated_h": 55}, "sku2/1": {"anchor_x": 57, "anchor_y": 0, "anchor_z": 11, "rotation": 0, "rotated_l": 180, "rotated_w": 55, "rotated_h": 55}, "sku3/1": {"anchor_x": 10, "anchor_y": 3, "anchor_z": 69, "rotation": 2, "rotated_l": 185, "rotated_w": 50, "rotated_h": 50}}}, "SO54": {"status": 1, "box": "4409", "items": {"sku4/1": {"anchor_x": 200, "anchor_y": 0, "anchor_z": 69, "rotation": 0, "rotated_l": 53, "rotated_w": 53, "rotated_h": 64}, "sku5/1": {"anchor_x": 53, "anchor_y": 199, "anchor_z": 0, "rotation": 0, "rotated_l": 130, "rotated_w": 55, "rotated_h": 40}, "sku5/2": {"anchor_x": 219, "anchor_y": 127, "anchor_z": 72, "rotation": 2, "rotated_l": 40, "rotated_w": 130, "rotated_h": 55}, "sku5/3": {"anchor_x": 13, "anchor_y": 126, "anchor_z": 2, "rotation": 2, "rotated_l": 40, "rotated_w": 130, "rotated_h": 55}, "sku6/1": {"anchor_x": 3, "anchor_y": 0, "anchor_z": 64, "rotation": 0, "rotated_l": 145, "rotated_w": 145, "rotated_h": 35}, "sku6/2": {"anchor_x": 19, "anchor_y": 3, "anchor_z": 99, "rotation": 0, "rotated_l": 145, "rotated_w": 145, "rotated_h": 35}, "sku6/3": {"anchor_x": 148, "anchor_y": 1, "anchor_z": 8, "rotation": 0, "rotated_l": 145, "rotated_w": 145, "rotated_h": 35}, "sku6/4": {"anchor_x": 2, "anchor_y": 148, "anchor_z": 64, "rotation": 0, "rotated_l": 145, "rotated_w": 145, "rotated_h": 35}, "sku6/5": {"anchor_x": 5, "anchor_y": 148, "anchor_z": 99, "rotation": 0, "rotated_l": 145, "rotated_w": 145, "rotated_h": 35}}}}}

Link: https://pan.baidu.com/s/1s3-MTV5MKwjNIad0XLtTuQ?pwd=2309

Extraction code: 2309

POST BOY: Restful API debugging tool:

https://www.cnblogs.com/tonymu/p/4213094.html

Machine-translated from the Chinese original 三维装箱API调用 (published 2023-09-11). WeChat original ↗