Используя время захвата для расчета общей продолжительности пребывания каждого транспортного средства в своем режиме.
.
1,2016-05-02 09:14:32.242, lat, long, 2, x
2,2016-05-02 09:14:37.341, lat, long, 2, x
3,2016-05-02 09:14:39.142, lat, long, 2, x
4,2016-05-02 09:14:42.736, lat, long, 2, x
5,2016-05-02,09:14:48.212, lat, long, 0, x //Capturing this timing for X
6,2016-05-02,09:14:52.222, lat, long, 0, x
7,2016-05-02,09:14:56.335, lat, long, 2, x //Capturing this timing for X
8,2016-05-02,09:14:58.242, lat, long, 2, x
9,2016-05-02,09:15:01.742, lat, long, 2, y
10,2016-05-02,09:15:03.862, lat, long, 2, x
11,2016-05-02,09:15:13.277, lat, long, 2, y
12,2016-05-02,09:15:24.436, lat, long, 2, y
13,2016-05-02,09:15:32.211, lat, long, 0, y //capturing this timing for Y