HERE Android SDK Developer's Guide

Fare

The class Fare is a member of com.here.android.mpa.urbanmobility .

Class Summary

public final class Fare

extends java.lang.Object

Represents information about a single fare (e.g.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in Fare
Methods

public boolean equals (Object o)

public String getCurrency ()

Gets ISO 4217 code of currency in which the price is given, e.g.

public java.util.Collection <Link> getLinks ()

Gets the collection of Links associated with this fare e.g.

public String getName ()

Gets name of the fare.

public double getPrice ()

Gets price of the fare.

public int hashCode ()

Class Details

Represents information about a single fare (e.g. ticket).

IMPORTANT: Urban Mobility routing is a Beta feature. The related classes are subject to change without notice.

Method Details

public boolean equals (Object o)

Parameters:

  • o

public String getCurrency ()

Gets ISO 4217 code of currency in which the price is given, e.g. "EUR".

Returns:

ISO 4217 code of currency of the price

See also:

ISO 4217

Gets the collection of Links associated with this fare e.g. to booking page.

Returns:

Collection of Links associated with this fare, or empty collection.

public String getName ()

Gets name of the fare.

Returns:

name of the fare

public double getPrice ()

Gets price of the fare.

Returns:

price of the fare

public int hashCode ()

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.