Rights protection of trajectory datasets with nearest-neighbor preservation