Exploiting shared structures in large GPS trajectory datasets under uncertainty