2/location/line/bus line/en
location/line/bus_line
Return bus route information by keyword.
URL
https://api.weibo.com/2/location/line/bus_line.json
Supported Formats
JSON
HTTP Request Method
GET
Requires Login
true
See the Login and Authorization Mechanism Statement for login and authorization details.
Requests Count Limitation
Level:Normal
Count Limitation:true
See the Interface Access Rights Statement for the request count limitation details.
Request Parameters
Requires | Type and Range | Description | |
---|---|---|---|
source | false | string | This parameter is not needed when using OAuth.The value of this parameter is the AppKey. |
access_token | false | string | This parameter is required when using OAuth.You will get the access_token after oauth authorization. |
q | true | string | Keyword to be queried.It must be encoded by URLencode. |
city | false | string | City code.Default is BeiJing search. |
page | false | int | The returned page.Default is 1.The max value is 40. |
count | false | int | The returned count for every page.Default is 10.The max value is 50. |
Notes
None
Response
JSON Example
{ "lines": [ { "key_name": "320路区间", "city": "0010", "name": "320路区间(保福寺桥西-北京西站北广场)", "front_name": "保福寺桥西", "front_spell": "bao fu si qiao xi", "terminal_name": "北京西站北广场", "terminal_spell": "bei jing xi zhan bei guang chang", "start_time": "05:00", "end_time": "23:00", "service_period": "0", "time_desc": "", "company": "北京公交集团第六客运分公司", "length": "13.2563", "basic_price": "1", "total_price": "1", "air": "0", "commutation_ticket": "0", "status": "1", "auto": "1", "ic_card": "1", "express_way": "0", "double_deck": "0", "description": "北京公交集团第六客运分公司", "type": "1", "coordinates": "116.22106,39.90652|116.22106,39.90594", "stations": [ { "name": "保福寺桥西", "longitude": "116.21946", "latitude": "116.21946", "district": "310100", "station_info": "地铁4号线(公益西桥-安河桥北)", "address": "北京保福寺桥西", "telephone": "" }, ... ] }, ... ], "total_number": 6 }
See the Error Code Description for the error information details.
Field Description
None
Others
None