Package 

Class EHCurvature

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public final class EHCurvature
     implements Parcelable
                        

    Data model representing EH curvature.

    Instances are typically immutable after construction. Use builders or factory methods where provided.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Float offsetFromLinkStart
      private final Integer value
    • Constructor Summary

      Constructors 
      Constructor Description
      EHCurvature(Float offsetFromLinkStart, Integer value)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Float getOffsetFromLinkStart() The distance from the start point of the link to the shape point, unit: meter.
      final Integer getValue() The curvature value of the shape point, range: 0, 1022.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EHCurvature

        EHCurvature(Float offsetFromLinkStart, Integer value)
    • Method Detail

      • getOffsetFromLinkStart

         final Float getOffsetFromLinkStart()

        The distance from the start point of the link to the shape point, unit: meter. Default value is Float.MAX_VALUE which indicates invalid value.

      • getValue

         final Integer getValue()

        The curvature value of the shape point, range: 0, 1022. 511 indicates straight, 0, 510 indicates right curves, 510, 1022 indicates left curves.