SpeedLimitSection

constructor(sectionLocation: SectionLocation, routeOffset: Distance, length: Distance, speedLimit: Speed)


constructor(geometry: List<GeoPoint>, routeOffset: Distance, length: Distance, speedLimit: Speed)

Deprecated

This API is deprecated and will be removed with the next major release.

Constructs a SpeedLimitSection object with the given parameters.

Parameters

geometry

List of GeoPoints representing the section.

routeOffset

Distance from the start of the route to the start point of the sectionLocation.

length

Distance from the the start point to the end point of the sectionLocation.

speedLimit

Maximum legal speed limit.


constructor(geometry: List<GeoPoint>, routeOffset: Distance, length: Distance, speedLimitInKmh: Int)

Deprecated

This API is deprecated and will be removed with the next major release.Use the constructor with `speedLimit` instead of `speedLimitInKmh`.

Replace with

SpeedLimitSection(geometry, routeOffset, length, Speed.kilometersPerHour(speedLimitInKmh))