Closed sagrawal31 closed 8 years ago
We are merging contiguous activities of the same type which are very close in time by checking the end time of first activity & start time of the next activity, which is less than a threshold value of 15 minutes.
Sometimes there are activities which are contiguous but there is another activity of type transport in between. For example:
[
{
"activity": "walking",
"group": "walking",
"manual": false,
"startTime": "20160209T231816-0500",
"endTime": "20160209T231833-0500",
"duration": 17,
"distance": 12,
"steps": 25
},
{
"activity": "transport",
"group": "transport",
"manual": false,
"startTime": "20160209T231917-0500",
"endTime": "20160209T232435-0500",
"duration": 318,
"distance": 3390
},
{
"activity": "walking",
"group": "walking",
"manual": false,
"startTime": "20160209T232440-0500",
"endTime": "20160209T232552-0500",
"duration": 72,
"distance": 54,
"steps": 109
}
]
The two walking activities are close in time i.e. contiguous but there is a transport activity in between. For these type of cases, we also merging the contiguous activity since transport activities are not being imported.
Before merging contiguous data:
After merging contiguous data: