improve location algorithm

determines bus shifts by arrival time