Skip to content

Route flavors

Since version 9.10 the MatTrip SDK provides the opportunity for calculating different routes by using different flavors. Each flavour sets different requirements for route calculation. According to these requirements, you get always an optimal route, in contrast to alternative routes.

The flavors

The following flavours are currently available:

  • DYNAMIC Normal route calculation

  • DIRECT Route calculation without traffic and only using the average speeds from the statistical traffic data. However, the statistical traffic data and the current traffic are taken into account for the ETA calculation.

  • LESS_TOLL Toll roads are not avoided, but are included in the calculation at a slightly higher cost. Additional parameters are required for this. See below.

How to use

You can calculate flavored routes with the new function Navigation.calculateFlavoredRoutes() The SDK gets the requested flavors from the settings parameters of the [ROUTING] section:

  • AlternativeRoutesFlavorsTruck

  • AlternativeRoutesFlavorsBus

  • AlternativeRoutesFlavorsCar

according to the current vehicle type.

The default values for these parameters are:

  • AlternativeRoutesFlavorsTruck=DYNAMIC;LESS_TOLL;DIRECT

  • AlternativeRoutesFlavorsBus=DYNAMIC;LESS_TOLL;DIRECT

  • AlternativeRoutesFlavorsCar=DYNAMIC;LESS_TOLL;DIRECT

After the calculation you can get the current flavor by the new function Navigation.getFlavor().

Example

Example for flavored routes