RangeCalculationOptions

class RangeCalculationOptions(val origin: ItineraryPoint, val budgets: Set<Budget>, val vehicle: Vehicle = Vehicle.Car(), val costModel: CostModel? = null, val departAt: Date? = null, val routeToInclude: Route? = null, val queryOptions: QueryOptions = QueryOptions())

Options for range calculation, that is, determining the boundary of the area reachable from an initial vehicle position given some budget such as limited energy.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

origin

The starting location of the range.

budgets

Budgets that limit the range. All budgets must be of the same type.

vehicle

The vehicle to be used.

costModel

Options governing which streets to prefer.

departAt

Departure date and time.

routeToInclude

A route that must be included in the range up to the reachable offset. It is used to visually align the range boundary with the reachable offset on the currently navigated route, if there is one. It is recommended to pass the navigated route here if it is displayed simultaneously with the range.

queryOptions

Options regarding the way the request is sent to the server.

Constructors

Link copied to clipboard
constructor(origin: ItineraryPoint, budgets: Set<Budget>, vehicle: Vehicle = Vehicle.Car(), costModel: CostModel? = null, departAt: Date? = null, routeToInclude: Route? = null, queryOptions: QueryOptions = QueryOptions())

Properties

Link copied to clipboard
Link copied to clipboard
val costModel: CostModel? = null
Link copied to clipboard
val departAt: Date? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val routeToInclude: Route? = null
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this object to another object.

Link copied to clipboard
open override fun hashCode(): Int

Calculates a hash value for this object.

Link copied to clipboard
open override fun toString(): String

Creates a string describing this object.

Inherited functions

Link copied to clipboard
fun RangeCalculationOptions.copy(origin: ItineraryPoint = this.origin, budgets: Set<Budget> = this.budgets, vehicle: Vehicle = this.vehicle, costModel: CostModel? = this.costModel, departAt: Date? = this.departAt, routeToInclude: Route? = this.routeToInclude, queryOptions: QueryOptions = this.queryOptions): RangeCalculationOptions

Copies this object while allowing to change some properties.