Towards trajectory anonymization: A generalization-based approach