SegmentReferenceConverter (API Reference)
Package com.here.sdk.mapdata
Class SegmentReferenceConverter
java.lang.Object
com.here.NativeBase
com.here.sdk.mapdata.SegmentReferenceConverter
A SegmentReferenceConverter provides possibility to convert mapmatched instances of
SegmentReference to corresponding instances of DirectedOCMSegmentId.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Constructor Summary
ConstructorsConstructorDescriptionSegmentReferenceConverter(SDKNativeEngine sdkEngine) Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptiongetOCMSegmentId(SegmentReference segmentReference) TheDirectedOCMSegmentIdfor providedSegmentReference.
-
Constructor Details
-
SegmentReferenceConverter
public SegmentReferenceConverter(@NonNull SDKNativeEngine sdkEngine) throws InstantiationErrorException Creates a new instance of this class.
- Parameters:
sdkEngine-A SDKEngine instance.
- Throws:
InstantiationErrorException-Indicates what went wrong when the instantiation was attempted.
-
-
Method Details
-
getOCMSegmentId
The
DirectedOCMSegmentIdfor providedSegmentReference.- Parameters:
segmentReference-SegmentReferenceto convert.- Returns:
DirectedOCMSegmentIdcorresponding to providedSegmentReference.
-