RouteSection
data class RouteSection(val type: RouteSectionType, val start: GeoPoint, val end: GeoPoint, val geometry: List<GeoPoint> = emptyList(), val routeOffset: Distance = Distance.ZERO)
Represent the Route section.
Constructors
Link copied to clipboard
Create a new instance of the route section.
constructor(type: RouteSectionType, start: GeoPoint, end: GeoPoint, geometry: List<GeoPoint> = emptyList(), routeOffset: Distance = Distance.ZERO)
Create a new instance of the route section.
Note: Please, use secondary constructor instead of primary. Using RouteSection.start and RouteSection.end can cause a problem when RouteSection.start and RouteSection.end are point to the same GeoPoint.
Properties
Link copied to clipboard
The route offset to the first point of the section.
Link copied to clipboard
The type for the section.