Class MaxSpeedOnSegment
Class MaxSpeedOnSegment
- java.lang.Object
-
- com.here.sdk.routing.MaxSpeedOnSegment
-
public final class MaxSpeedOnSegment extends java.lang.ObjectNew base speed for a segment. Affects route calculation and the ETA. Cannot increase base speed on segment.
Note: This option can only be used with the
RoutingEngine. TheOfflineRoutingEngineis not supported and the option will be ignored. Note that theOfflineRoutingEngineis only available for editions such as the Navigate Edition.
-
-
Field Summary
Fields Modifier and Type Field Description doublebaseSpeedInMetersPerSecondNew maximum value in m/s of baseSpeed on segment.SegmentReferencesegmentA segment for which the new base speed is specified.
-
Constructor Summary
Constructors Constructor Description MaxSpeedOnSegment(SegmentReference segment, double baseSpeedInMetersPerSecond)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
segment
@NonNull public SegmentReference segment
A segment for which the new base speed is specified. Only the
segmendIdandtravelDirectionparameters are used, other parameters are ignored. Setting asegmendIdis mandatory.Note: The
SegmentReferenceis not directly accessible from the map via the HERE SDK. Although, after route calculation you can retrieve the related segments for eachSpan. The segment IDs are the same that are also used by, for example, the Routing REST API. These IDs are mostly stable and only change when the underlying map data changes due to a new road or similar changes in the real world.
-
baseSpeedInMetersPerSecond
public double baseSpeedInMetersPerSecond
New maximum value in m/s of baseSpeed on segment. The provided value must be in the range [1.0, 70.0]. Cannot increase base speed on segment. If the value is greater than the default base speed, then such penalty will have no effect.
-
-
Constructor Detail
-
MaxSpeedOnSegment
public MaxSpeedOnSegment(@NonNull SegmentReference segment, double baseSpeedInMetersPerSecond)Creates a new instance.
- Parameters:
segment-A segment for which the new base speed is specified. Only the
segmendIdandtravelDirectionparameters are used, other parameters are ignored. Setting asegmendIdis mandatory.Note: The
SegmentReferenceis not directly accessible from the map via the HERE SDK. Although, after route calculation you can retrieve the related segments for eachSpan. The segment IDs are the same that are also used by, for example, the Routing REST API. These IDs are mostly stable and only change when the underlying map data changes due to a new road or similar changes in the real world.baseSpeedInMetersPerSecond-New maximum value in m/s of baseSpeed on segment. The provided value must be in the range [1.0, 70.0]. Cannot increase base speed on segment. If the value is greater than the default base speed, then such penalty will have no effect.
-
-