Esempio n. 1
0
    return st_bias - realBusPos[index]


if __name__=='__main__':
    print(__file__, 'test!')
    import os
    import sys
    parent_path = os.path.dirname(os.path.dirname(__file__))
    sys.path.append(parent_path)
    
    from lineDistance import lineStopTable
    from lineDistance import linesTable
    lt = linesTable()
    lt.read_from_file('..\lines.txt')
    
    lst=lineStopTable()
    lst.read_from_file('..\linestop.txt')
    
    line_stations = lst.index(0)
    line = lt.index(0)
    print(line)
    
    #print(line_stations)
    sac = setOneLineStationArriveInfo(line, line_stations, [4, 20, 28])
    for i in sac:
        print(i.toString())