BusListResult

公交列表查询成功回调函数的参数对象

interface BusListResult {
    city?: string;
    keyword?: string;
    moreResultsUrl?: string;
    getBusListItem(i: number): BusListItem;
    getNumBusList(): number;
}

属性

本次检索所在城市

本次检索关键字

到百度地图查看url

方法

  • 获取某一个具体的公交列表中的对象。0表示上行,1表示下行

    参数类型说明
    inumber

    返回值 BusListItem

  • 公交列表个数

    返回值 number