Calculate the weight for individual location visiting

Use distance function to judge co-locating event.
Eliminate the consecutive meeting cases