SpeedLimitSection

class SpeedLimitSection(val geometry: List<GeoPoint>, val routeOffset: Distance, val length: Distance, val speedLimit: Speed) : Section

Represents a route section with a speed limit.

Parameters

speedLimit

Maximum legal speed limit.

See also

Constructors

Link copied to clipboard
constructor(geometry: List<GeoPoint>, routeOffset: Distance, length: Distance, speedLimit: Speed)

Properties

Link copied to clipboard
open override val geometry: List<GeoPoint>

List of coordinates representing section.

Link copied to clipboard
open override val length: Distance

Distance from the the first point of geometry to the last point.

Link copied to clipboard
open override val routeOffset: Distance

Distance from the start of the route to the first point of geometry.

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if this SpeedLimitSection object is structurally equal to another object.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object, which allows it to be used in hash-based collections.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.