Search for content

Calculation Mode

The calculation mode defines the calculation behavior of the algorithm, i.e. if the focus of calculation is on performance, quality or both.

There are three different modes available:

  • PERFORMANCE: The matching focuses on performance. This means to take into account a higher number of failed matches and in the case of track matching that the matched track may be split into several paths.
  • QUALITY: The matching focuses on high solution quality. This means that as many as possible of the input positions are matched and taken into account. Though the processing time of the request can be high.
  • STANDARD: The matching chooses a standard trade-off between quality and performance. This is the default if the calculation mode is not explicitly defined in the request.

The calculation mode can be defined by a query parameter in the request.

For position matching the request may look like this:

https://api.myptv.com/mapmatch/v1/positions/49.480301/6.110667?calculationMode=PERFORMANCE

 

For track matching the request may look like this:

https://api.myptv.com/mapmatch/v1/tracks?calculationMode=PERFORMANCE