RouteSegment

sealed interface RouteSegment

A single contiguous part of the route.

The full journey is represented as an ordered list of RouteSegment items. Each item describes one movement phase between two points in the route.

Typical sequence: Walking ->PublicTransport ->PublicTransport ->Walking

Inheritors

Types

Link copied to clipboard

Public transport ride segment.

Link copied to clipboard
data class Walking(val duration: Duration) : RouteSegment

Walking segment between two route points.