Class Fare

java.lang.Object
com.here.sdk.routing.Fare

public final class Fare extends Object

Holds all the fare data.

  • Field Details

    • name

      @NonNull public String name

      Name of a fare

    • price

      @Nullable public FarePrice price

      Price of a fare. It is null when no price data is available.

    • reason

      @NonNull public FareReason reason

      Reason of this cost.

  • Constructor Details

    • Fare

      public Fare(@NonNull String name, @Nullable FarePrice price, @NonNull FareReason reason)

      Creates a new instance.

      Parameters:
      name -

      Name of a fare

      price -

      Price of a fare. It is null when no price data is available.

      reason -

      Reason of this cost.

  • Method Details