Route

fun Route(    id: RouteId,     summary: Summary,     legs: List<RouteLeg>,     routePoints: List<RoutePoint>,     sections: Sections,     routeCoordinates: List<RouteCoordinate> = emptyList())

Parameters

id

Unique ID.

summary

A collection of data fields representing the properties of the route.

legs

List of route legs.

routePoints

List containing every waypoint along the route, including origin and destination.

sections

Information about sections of the route.

routeCoordinates

Optional extended representation of the route.

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