A
map matching method and device based on trajectory topology. The method comprises the steps of: S1, on the basis of road
network data, modeling an
urban space by using three types of nodes, i.e., entrance and exit nodes, hub nodes and connection nodes, and constructing an urban
topological graph; S2, using an original vehicle GPS
record sequence to obtain a candidate
point set corresponding to vehicle trajectory topology; S3, calculating a
spatial similarity function between candidate points according to the original vehicle GPS
record sequence and the urban
topological graph, so as to obtain a weight candidate graph; S4, establishing a static
similarity matrix according to the weight candidate graph, and performing calculation to obtain a weighted
similarity matrix; S5, calculating a local optimal path, counting votes for all candidate points on the local optimal path, and connecting the candidate points having the highest number of votes, so as to obtain trajectory topology; and S6, performing
map matching by means of the trajectory topology. An urban
topological graph is used as a carrier of a trajectory data expression, such that an expression mode for a trajectory can be simplified, thereby improving the accuracy and efficiency of
map matching and trajectory data.