sdk-routing / com.tomtom.online.sdk.routing.data / FullRoute

FullRoute

open class FullRoute : MatchingDataProvider, Serializable

A description of a route comprised of a list of legs.

Constructors

<init>

FullRoute()

A description of a route comprised of a list of legs.

Properties

guidance

var guidance: RouteGuidance!

Contains guidance related elements. This field is present only when guidance was requested and is available.

legs

var legs: Array<RouteLeg!>!

A description of a part of a route, comprised of a list of points. Each additional waypoint provided in the Request will result in an additional leg in the returned route.

sections

var sections: Array<RouteSection!>!

Available inside elements. Contains one or more elements. The inner structure of a element is given below.

summary

var summary: Summary!

A summary of a route.

tag

var tag: Any!

Keeps any object to serialize and restore after rotation. String is best for serialization.

Functions

asMatchingDataProvider

open fun asMatchingDataProvider(): MatchingDataProvider

Get route as MatchingDataProvider.

getCoordinates

open fun getCoordinates(): MutableList<LatLng!>

Get route points.