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

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.