Preserving privacy in semantic-rich trajectories of human mobility