• java.lang.Object
    • com.here.sdk.transport.CarSpecifications

  • public final class CarSpecifications
    extends java.lang.Object

    Car specifications contain vehicle related attributes. Examples: Dimensions, weight, axle count. Only the fields that are set are considered for restriction handling.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Integer axleCount
      Defines total number of axles in the vehicle.
      java.lang.Integer grossWeightInKilograms
      Car weight including trailers and shipped goods in kilograms.
      java.lang.Integer heightInCentimeters
      Car height in centimeters.
      java.lang.Integer lengthInCentimeters
      Car length in centimeters.
      java.lang.Integer trailerAxleCount
      Defines total number of axles across all the trailers attached to the vehicle.
      java.lang.Integer trailerCount
      Defines number of trailers attached to the vehicle.
      java.lang.Integer widthInCentimeters
      Car width in centimeters.
    • Constructor Summary

      Constructors 
      Constructor Description
      CarSpecifications()
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • grossWeightInKilograms

        @Nullable
        public java.lang.Integer grossWeightInKilograms

        Car weight including trailers and shipped goods in kilograms. The provided value must be greater than or equal to 0. By default, it is not set. Note: This parameter is limited to a maximum weight of 4250 kg without trailer and 7550 kg with trailer.

      • heightInCentimeters

        @Nullable
        public java.lang.Integer heightInCentimeters

        Car height in centimeters. The provided value must be in the range [0, 5000]. By default, it is not set.

      • widthInCentimeters

        @Nullable
        public java.lang.Integer widthInCentimeters

        Car width in centimeters. The provided value must be in the range [0, 5000]. By default, it is not set.

      • lengthInCentimeters

        @Nullable
        public java.lang.Integer lengthInCentimeters

        Car length in centimeters. The provided value must be in the range [0, 30000]. By default, it is not set.

      • axleCount

        @Nullable
        public java.lang.Integer axleCount

        Defines total number of axles in the vehicle. The provided value must be greater than or equal to 2. By default, it is not set. Route calculation: When not set, possible axle count restrictions will not be taken into consideration. When specifying trailerAxleCount, then axleCount is required and must be greater than trailerAxleCount.

      • trailerCount

        @Nullable
        public java.lang.Integer trailerCount

        Defines number of trailers attached to the vehicle. The provided value must be in the range [0, 1]. By default, it is not set. When specifying trailerAxleCount, then trailerCount is required and must be greater than 0.

      • trailerAxleCount

        @Nullable
        public java.lang.Integer trailerAxleCount

        Defines total number of axles across all the trailers attached to the vehicle. This number is included in axleCount, hence trailerAxleCount must be less than axleCount and greater than or equal to 1. axleCount and trailerCount are required to specify trailerAxleCount. By default, it is not set.

    • Constructor Detail

      • CarSpecifications

        public CarSpecifications()

        Creates a new instance.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object