Package com.tomtom.sdk.routing.api

Types

Link copied to clipboard
interface CalculateRangeCallback : Callback<CalculateRangeResult, RoutingError>

Callback which is responsible to inform about a received CalculateRangeResult or respective error.

Link copied to clipboard
data class CalculateRangeOptions(    val origin: ItineraryPoint,     val budget: Budget,     val vehicle: Vehicle,     val costModel: CostModel? = null,     val departAt: Date? = null,     val maxFerryLength: Distance? = null,     val chargeMargins: Set<Energy> = emptySet(),     val queryOptions: QueryOptions? = null)

Options for range calculation.

Link copied to clipboard
data class CalculateRangeResult(val range: Range)

Represents the calculated range based on a passed CalculateRangeOptions.

Link copied to clipboard
class Itinerary(    val origin: ItineraryPoint,     val destination: ItineraryPoint,     val waypoints: List<ItineraryPoint> = emptyList())

Itinerary represents a sequence of points that a route visits.

Link copied to clipboard
data class ItineraryPoint(val place: Place, val heading: Angle? = null)

Encapsulates Place with the additional information relevant for the route itinerary.

Link copied to clipboard
value class ItineraryPointId(val value: UUID = UUID.randomUUID())

Represents a unique identifier of an itinerary point.

Link copied to clipboard
interface PlanRouteCallback : Callback<PlanRouteResult, RoutingError>

Callback which is responsible to inform about a received PlanRouteResult or respective error.

Link copied to clipboard
data class PlanRouteOptions(    val itinerary: Itinerary,     val costModel: CostModel? = null,     val departAt: Date? = null,     val arriveAt: Date? = null,     val alternativeRoutesOptions: AlternativeRoutesOptions? = null,     val guidanceOptions: GuidanceOptions? = null,     val routeLegOptions: List<RouteLegOptions> = arrayListOf(),     val vehicle: Vehicle = Vehicle(),     val queryOptions: QueryOptions? = null)

Options for route planning.

Link copied to clipboard
data class PlanRouteResult(val routes: List<Route>)

Represents the calculated route based on a passed PlanRouteOptions.

Link copied to clipboard
data class RouteLegOptions(val supportingPoints: List<GeoCoordinate>)

Options specific for concrete leg.

Link copied to clipboard
interface RoutingApi : Disposable

Entry point to perform a route planning action.

Link copied to clipboard
open class RoutingError(val message: String? = null) : RuntimeException

Represents an error raised when something went wrong in routing.