Towards Trajectory Anonymization: a Generalization-Based Approach