Electronic computer configured to implement a method for correcting the trajectory of a vehicle in a relative reference frame associated therewith and comprising the following steps: a) receiving, for a plurality of vehicles: - data comprising, for a plurality of successive positions of a vehicle on its trajectory: * a plurality of vehicle reference frame transformations representative of a change of position and relative orientation of the vehicle between two respective successive positions, * a plurality of transformations of the position of an infrastructure element, representative of the relative position of an infrastructure element crossed by the vehicle with respect to a respective position of the vehicle, and - a plurality of absolute positions of the vehicle in a GNSS coordinate reference frame corresponding to the successive positions of the vehicle on its trajectory, b) receiving, for each infrastructure element crossed by a vehicle, a signature comprising a descriptor of the crossed infrastructure element, c) identifying common infrastructure elements based on the absolute positions of each vehicle and on the signatures of infrastructure elements crossed by each vehicle, d) selecting trajectory portions of at least two vehicles, each trajectory portion being defined by two infrastructure elements crossed by a vehicle, an infrastructure element being common to two consecutive trajectory portions corresponding to two separate vehicles so as to form a loop having a length greater than a predetermined length and for which the number of selected trajectory portions is at a minimum, e) implementing a loop closure algorithm on the loop formed by the selected trajectory portions so as to correct the trajectory of each vehicle in the relative reference frame associated therewith, on the selected trajectory portions. a) receiving, for a plurality of vehicles: - data comprising, for a plurality of successive positions of a vehicle on its trajectory: * a plurality of vehicle reference frame transformations representative of a change of position and relative orientation of the vehicle between two respective successive positions, * a plurality of transformations of the position of an infrastructure element, representative of the relative position of an infrastructure element crossed by the vehicle with respect to a respective position of the vehicle, and - a plurality of absolute positions of the vehicle in a GNSS coordinate reference frame corresponding to the successive positions of the vehicle on its trajectory, - data comprising, for a plurality of successive positions of a vehicle on its trajectory: * a plurality of vehicle reference frame transformations representative of a change of position and relative orientation of the vehicle between two respective successive positions, * a plurality of transformations of the position of an infrastructure element, representative of the relative position of an infrastructure element crossed by the vehicle with respect to a respective position of the vehicle, and * a plurality of vehicle reference frame transformations representative of a change of position and relative orientation of the vehicle between two respective successive positions, * a plurality of transformations of the position of an infrastructure element, representative of the relative position of an infrastructure element crossed by the vehicle with respect to a respective position of the vehicle, and - a plurality of absolute positions of the vehicle in a GNSS coordinate reference frame corresponding to the successive positions of the vehicle on its trajectory, b) receiving, for each infrastructure element crossed by a vehicle, a signature comprising a descriptor of the crossed infrastructure element, c) identifying common infrastructure elements based on the absolute positions of each vehicle and on the signatures of infrastructure elements crossed by each vehicle, d) selecting trajectory portions of at least two vehicles, each trajectory portion being defined by two infrastructure elements crossed by a vehicle, an infrastructure element being common to two consecutive trajectory portions corresponding to two separate vehicles so as to form a loop having a length greater than a predetermined length and for which the number of selected trajectory portions is at a minimum, e) implementing a loop closure algorithm on the loop formed by the selected trajectory portions so as to correct the trajectory of each vehicle in the relative reference frame associated therewith, on the selected trajectory portions.