Package com.trimblemaps.mapsdk.maps
Class TruckRestrictionsFilter.Builder
java.lang.Object
com.trimblemaps.mapsdk.maps.TruckRestrictionsFilter.Builder
- Enclosing class:
- TruckRestrictionsFilter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaxleLoad(int value) Set vehicle axle load filter.build()Build a TruckRestrictionsFilterSet the array of categories to showSet hazmat type filter.height(float value) Set vehicle height (in inches) filter.height(float value, TruckRestrictionsFilter.UNITS units) Set vehicle height filter.Set vehicle LCV filter.length(float value) Set vehicle length (in inches) filter.length(float value, TruckRestrictionsFilter.UNITS units) Set vehicle length filter.floattoInches(float value, TruckRestrictionsFilter.UNITS units) Convert a value, units pair to inchesfloattoPounds(float value, TruckRestrictionsFilter.UNITS units) Convert a value, units pair to poundstunnelCategory(String value) Set tunnel category filter.Set vehicle type filter.weight(float value) Set vehicle weight (in pounds) filter.weight(float value, TruckRestrictionsFilter.UNITS units) Set vehicle weight filter.width(float value) Set vehicle width (in inches) filter.width(float value, TruckRestrictionsFilter.UNITS units) Set vehicle width filter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
categories
public TruckRestrictionsFilter.Builder categories(@Nullable TruckRestrictionsFilter.CATEGORY[] value) 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
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 unitsunits- UNITS_INCHES or UNITS_CM- Returns:
- builder for chaining
-
width
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 unitsunits- UNITS_INCHES or UNITS_CM- Returns:
- builder for chaining
-
length
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 unitsunits- UNITS_INCHES or UNITS_CM- Returns:
- builder for chaining
-
weight
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 unitsunits- UNITS_LBS or UNITS_KG- Returns:
- builder for chaining
-
axleLoad
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
Set vehicle LCV filter. Will show only restrictions that are match this value- Parameters:
value- LCV true or false- Returns:
- builder for chaining
-
hazmatType
public TruckRestrictionsFilter.Builder hazmatType(@Nullable TruckRestrictionsFilter.HAZMAT_TYPE value) Set hazmat type filter. Will show only restrictions that match this value- Parameters:
value- hazmat type- Returns:
- builder for chaining
-
tunnelCategory
Set tunnel category filter. Will show only restrictions that match this value- Parameters:
value- tunnel category- Returns:
- builder for chaining
-
build
Build a TruckRestrictionsFilter- Returns:
- newly constructed TruckRestrictionsFilter
-
toInches
Convert a value, units pair to inches- Parameters:
value- valueunits- UNITS_INCHES or UNITS_CM- Returns:
- value converted to inches
-
toPounds
Convert a value, units pair to pounds- Parameters:
value- valueunits- UNITS_LBS or UNITS_KG- Returns:
- value converted to pounds
-