Use Cases > PTV xMapmatch > How to Reconstruct a Route From GPS Tracks

How to Reconstruct a Route From a GPS Track

The PTV xMapmatch Server tries to detect the most probable driven route based on the tracked GPS positions. The server uses map matching:

Using the PTV xMapmatch Server, it is possible to determine on which street a car currently is most probably located. The geographic locations, which are used as input of the PTV xMapmatch Server, usually are provided by a GPS receiver or a combination of sensors which allow the determination of an approximated position. The accuracy of the positions detected by a device varies depending on several conditions. For example environmental influences or the method of position detection by the device itself. A GPS position for civil usage for example only allows an accuracy of 15 meter. Under sub-optimal conditions the detected position may differ from the actual position by 100 meter or more. Due to this reason PTV xMapmatch tries to find the possible driven route. It is not guaranteed that he find the exact route.

You can choose between two calculation modes:

During the matching, driving restrictions are also included such as tunnels, one-way streets, pedestrian areas etc. Plausibility checks for the reconstruction of routes and the analysis of junction and turn-off situations ensure reliable results.

The PTV xMapmatch Server contains a standstill recognition and processes dense (second interval) and sparse signals (minute interval). It provides a road category (network class) for every matched segment and the permitted speed limit wherever available. In addition, the PTV xMapmatch Server provides a summary of the route. This contains the total distance and duration as well as a corresponding segment list and a polyline of the matched route.

Benefits

What does the PTV xMapmatch Server not provide

Configuration

There are some profiles for the special use cases of the PTV xMapmatch Server.

The lower the selected frequency of the incoming GPS signals the lower the accuracy of matching the de facto driven road.

A recommended profile does not exist for all feasible usage types. If a vehicle is exemplarily on a highway, the GPS signal could be rare because there are only several junctions which have to be considered for matching. In this case we recommend selecting the default profile.

If the vehicle is in a city the income of the signal has to be frequently because there are many junctions and with them a lot of opportunities which way the vehicle has effectively used. In this case choose the dense-signal profile.

Caution: Some GPS devices record the signals more frequently in the city and less on a highway. For this specific case we don't provide an appropriate profile.

Programming Guide

Map matching is the process of overlaying a potential route based on GPS tracks on a given map. Therefore, the street segments have to be detected according to the provided GPS positions. Due to the inaccuracy of the GPS signals and the different tracking periods, the precise referencing of the actually used street segments is challenging. This is the main purpose of the PTV xMapmatch Server. The following code samples might give an impression of the possible applications divided in basic and advanced levels.

Method How to Level Important note
matchTrack() How to match GPS tracks in principle? basic Method is deprecated. Please use matchPositions() with the same result.
matchTrackExtended() How to illustrate the matched GPS tracks? Return polylines and speed classes. advanced Method is deprecated. Please use matchPositions() with the same result.
matchPositions() How to match GPS tracks selecting additional parameters such as polyline, speed class or vendor id? basic Method is recommended for enhancements.
matchPositions() How to match GPS tracks using the Unified Profile Mechanism? advanced Method is recommended for enhancements.

Download Source Code

The entire code samples are also available as stand-alone java or C# programs.