Use Cases > PTV xMapmatch > How to Use matchTrackExtended

How to illustrate the matched GPS tracks

Caution: The method is deprecated. Please use matchPositions() with the same result.

These sections describe how to obtain the polylines for drawing the matched segments and to return the speed classes in the result list. Only the extended code snippets are presented based on the previous sample: How to match GPS tracks in principle.

Tracked locations

Calling matchTrackExtended

In addition to the basic arguments, following two attributes can be enabled:

Output

The match result contains the above named properties in addition. Visualize the polyline and list the speed class in a corresponding table.

Plot Results

The matched segments are displayed by the corresponding polyline.

Matched segments

The following table exemplarily illustrates the tile id, the corresponding speed classes and their polylines.

Result list - Matched segments