May 18, 2021 WeChat Mini Program Development Document
Set up bus/subway lines.
The name of the argument | Type | Required | Note |
---|---|---|---|
type | Int | Y | Type 0-Metro 1-Bus |
conf | object | Y | The set line configuration |
The contents of the conf are as follows:
The name of the argument | Type | Required | Note |
---|---|---|---|
line_list | away | Y | Line information |
Each conf.line_list of them is as follows:
The name of the argument | Type | Required | Note |
---|---|---|---|
Id | Int | Y | The unique id of the line |
start_station | string | Y | The starting station |
end_station | string | Y | Terminal |
line_name | string | Y | The line name |
The name of the argument | Type | Required | Note |
---|---|---|---|
errcode | Int | Y | Error code |
errmsg | string | Y | The error message |