PricingInterval

data class PricingInterval(val start: Int, val rate: Double, val interval: Int, val end: Int? = null)(source)

A pricing interval defining a rate that is charged over a specific range of distance or time.

Constructors

Link copied to clipboard
constructor(start: Int, rate: Double, interval: Int, end: Int? = null)

Properties

Link copied to clipboard
val end: Int?

The unit (kilometer or minute) at which the rate will no longer apply (exclusive).

Link copied to clipboard

Interval in units at which the rate of this segment is either reapplied indefinitely, or if defined, up until (but not including) end.

Link copied to clipboard

Rate that is charged for each unit interval after the start.

Link copied to clipboard
val start: Int

The unit (kilometer or minute) at which this segment rate starts being charged (inclusive).