Class TruckRestrictionsFilter.Builder

java.lang.Object
com.trimblemaps.mapsdk.maps.TruckRestrictionsFilter.Builder
Enclosing class:
TruckRestrictionsFilter

public static class TruckRestrictionsFilter.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • categories

      Set the array of categories to show
      Parameters:
      value - array of categories or null to show all categories
      Returns:
      builder for chaining
    • vehicleType

      Set vehicle type filter. Will show only restrictions that match this vehicle type
      Parameters:
      value - vehicle type filter
      Returns:
      builder for chaining
    • height

      public TruckRestrictionsFilter.Builder height(float value)
      Set vehicle height (in inches) filter. Will show only restrictions that are smaller than this value
      Parameters:
      value - vehicle height in inches
      Returns:
      builder for chaining
    • height

      Set vehicle height filter. Will show only restrictions that are smaller than this value
      Parameters:
      value - vehicle height in units
      units - UNITS_INCHES or UNITS_CM
      Returns:
      builder for chaining
    • width

      public TruckRestrictionsFilter.Builder width(float value)
      Set vehicle width (in inches) filter. Will show only restrictions that are smaller than this value
      Parameters:
      value - vehicle width in inches
      Returns:
      builder for chaining
    • width

      Set vehicle width filter. Will show only restrictions that are smaller than this value
      Parameters:
      value - vehicle width in units
      units - UNITS_INCHES or UNITS_CM
      Returns:
      builder for chaining
    • length

      public TruckRestrictionsFilter.Builder length(float value)
      Set vehicle length (in inches) filter. Will show only restrictions that are smaller than this value
      Parameters:
      value - vehicle length in inches
      Returns:
      builder for chaining
    • length

      Set vehicle length filter. Will show only restrictions that are smaller than this value
      Parameters:
      value - vehicle length in units
      units - UNITS_INCHES or UNITS_CM
      Returns:
      builder for chaining
    • weight

      public TruckRestrictionsFilter.Builder weight(float value)
      Set vehicle weight (in pounds) filter. Will show only restrictions that are smaller than this value
      Parameters:
      value - vehicle weight in pounds
      Returns:
      builder for chaining
    • weight

      Set vehicle weight filter. Will show only restrictions that are smaller than this value
      Parameters:
      value - vehicle weight in units
      units - UNITS_LBS or UNITS_KG
      Returns:
      builder for chaining
    • axleLoad

      public TruckRestrictionsFilter.Builder axleLoad(int value)
      Set vehicle axle load filter. Will show only restrictions that are smaller than this value
      Parameters:
      value - vehicle axle load
      Returns:
      builder for chaining
    • lcv

      public TruckRestrictionsFilter.Builder lcv(@Nullable Boolean value)
      Set vehicle LCV filter. Will show only restrictions that are match this value
      Parameters:
      value - LCV true or false
      Returns:
      builder for chaining
    • hazmatType

      Set hazmat type filter. Will show only restrictions that match this value
      Parameters:
      value - hazmat type
      Returns:
      builder for chaining
    • tunnelCategory

      public TruckRestrictionsFilter.Builder tunnelCategory(@Nullable String value)
      Set tunnel category filter. Will show only restrictions that match this value
      Parameters:
      value - tunnel category
      Returns:
      builder for chaining
    • build

      public TruckRestrictionsFilter build()
      Build a TruckRestrictionsFilter
      Returns:
      newly constructed TruckRestrictionsFilter
    • toInches

      public float toInches(float value, TruckRestrictionsFilter.UNITS units)
      Convert a value, units pair to inches
      Parameters:
      value - value
      units - UNITS_INCHES or UNITS_CM
      Returns:
      value converted to inches
    • toPounds

      public float toPounds(float value, TruckRestrictionsFilter.UNITS units)
      Convert a value, units pair to pounds
      Parameters:
      value - value
      units - UNITS_LBS or UNITS_KG
      Returns:
      value converted to pounds