HERE Android SDK Developer's Guide

TollCostResult

The class TollCostResult is a member of com.here.android.mpa.tce .

Class Summary

public final class TollCostResult

extends java.lang.Object

Represent result of TollCostRequest.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in TollCostResult
Methods

public Map getTollCostByCountry ()

Gets the toll cost for each country the route traverses.

public Map getTollCostByTollSystemName ()

Gets the toll cost for each toll system the route traverses.

public BigDecimal getTotalTollCost ()

Gets the total toll cost of given Route.

Class Details

Represent result of TollCostRequest. This class wrap different toll costs.

Method Details

public Map getTollCostByCountry ()

Gets the toll cost for each country the route traverses.

Returns:

A map of ISO ALPHA-3 country code and toll cost in the specified setCurrency(String) currency. Default currency is EUR.

public Map getTollCostByTollSystemName ()

Gets the toll cost for each toll system the route traverses.

Please note that the toll system names will not be localized.

Returns:

A map of toll system name and toll cost in the specified setCurrency(String) currency. Default currency is EUR.

public BigDecimal getTotalTollCost ()

Gets the total toll cost of given Route.

Returns:

total toll cost in the specified setCurrency(String) currency. Default currency is EUR.