Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat small program query line interface


May 18, 2021 WeChat Mini Program Development Document


Table of contents


Query the line interface

Check the bus/subway lines set up.

1, request parameters

The name of the argument Type Required Note
type Int Y Type 0-Metro 1-Bus

2, return parameters

The name of the argument Type Required Note
errcode Int Y Error code
errmsg string Y The error message
results object N Line information

The contents of the results are as follows:

The name of the argument Type Required Note
line_list away Y Line information

Each results.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