HERE Android SDK Developer's Guide

ConsumptionForSpeed

The class ConsumptionForSpeed is a member of com.here.android.mpa.routing.ConsumptionParameters.

Class Summary

public static final class ConsumptionParameters.ConsumptionForSpeed

extends java.lang.Object

Specifies consumption per meter for different travel speeds.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in ConsumptionForSpeed
Constructors

ConsumptionForSpeed (int speedInKmH, double consumptionPerMeter)

Default constructor.

Method Summary

Table 2. Methods in ConsumptionForSpeed
Methods

public boolean equals (Object o)

For documentation, see java.lang.Object

public double getConsumptionPerMeter ()

Gets the consumption per meter value.

public int getSpeedInKmH ()

Gets the speed in Kh per hour.

public int hashCode ()

For documentation, see java.lang.Object

Class Details

Specifies consumption per meter for different travel speeds.

Constructor Details

ConsumptionForSpeed (int speedInKmH, double consumptionPerMeter)

Default constructor.

Parameters:

  • speedInKmH

    The speed in Km per hour

  • consumptionPerMeter

    The consumption per meter

Method Details

public boolean equals (Object o)

For documentation, see java.lang.Object

Parameters:

  • o

public double getConsumptionPerMeter ()

Gets the consumption per meter value.

Returns:

The consumption value

public int getSpeedInKmH ()

Gets the speed in Kh per hour.

Returns:

The speed value

public int hashCode ()

For documentation, see java.lang.Object