I have one database table in which I have Longitude,Latitude and DateTime of User, after every 2 seconds the record is inserted in database table with different latitude and longitude. My Task is to find out how many times users vehicle had stay for more than 15 mins in area of 100 or 200 meters.
LogId UserId Latitude Longitude CreatedDate
23 3 19.8861455500 75.3164193833 2017-05-11 20:49:09.000
24 3 19.8861096167 75.3163952833 2017-05-11 20:49:10.000
25 3 19.8860737833 75.3164109000 2017-05-11 20:49:12.000
26 3 19.8860663167 75.3164390667 2017-05-11 20:49:14.000
27 3 19.8860388000 75.3164496000 2017-05-11 20:49:16.000
28 3 19.8860183333 75.3164691833 2017-05-11 20:49:19.000
29 3 19.8859985667 75.3164865000 2017-05-11 20:49:20.000
30 3 19.8859775667 75.3165013333 2017-05-11 20:49:22.000
31 3 19.8859546167 75.3165024667 2017-05-11 20:49:24.000
32 3 19.8859062000 75.3164335000 2017-05-11 20:49:25.000
Like if driver of vehicle is stop for lunch/for any personal work and spend his most time in particular small areas of city. I have to calculate his stay times in particular time frame.
I did't find any logic to solve this problem. If you got any solution its highly appreciated...!!!