An apparatus comprising processing circuitry and at least one memory including computer program code instructions, the computer program code instructions configured to, when executed by the processing circuitry, cause the apparatus to:
- receive a sequence of location probe data points representative of travel of a vehicle along a portion of a road network during an interval of time;
- identify junction behavior in the sequence of location probe data points based on one or more features for the sequence of location probe data points;
- apply, based on the junction, a last probe data point of a first sub-trajectory for the trajectory and a first probe data point of a second sub-trajectory for the trajectory, a gap placement in the sequence of location probe data points to generate at least a first subsequence of the location probe data points and a second subsequence of the location probe data points;
- and
- encode at least the first subsequence of the location probe data points and the second subsequence of the location probe data points in a database to provide anonymized mobility data for the vehicle.