The invention is applicable to the technical field of offline map matching, and provides an offline map matching method. The method models an offline map matching problem into a shortest path problemtaking minimization of a total matching difference value between moving track data and a matching path as an optimization target, so that on one hand, the problem of arc crossing in offline map matching is solved, and on the other hand, the problem of arc crossing in offline map matching is solved; on the other hand, compared with an incremental matching method which only considers the informationof the adjacent GPS positioning points or the adjacent track segments to match the current GPS positioning points or the track segments, the offline map matching method provided by the embodiment ofthe invention has the advantages that a driving path with the minimum total matching difference value with the moving track data is found from the global perspective, a high matching precision is obtained, and in the process, a plurality of candidate matching positions do not need to be set for each GPS positioning point, and only one shortest path from the starting node to the destination node needs to be calculated, so that compared with a global maximum weight matching method, the method of the invention omits a large amount of shortest path calculation and greatly improves the map matchingefficiency.