FareInfo

data class FareInfo(val value: Int, val currency: Currency)

Represents fare information with amount and currency for locale-aware formatting.

Used to display fare in the format appropriate for the user's locale, e.g., "168 ₽" for Russian locale, "168 ₸" for Kazakh locale.

Constructors

Link copied to clipboard
constructor(value: Int, currency: Currency)

Properties

Link copied to clipboard

The Currency instance for formatting. Determined from the route's cost info when available, falls back to the device locale currency.

Link copied to clipboard
val value: Int

Fare amount in the main currency units (e.g., rubles, tenge).