Package com.mapfactor.sdk.routing
Interface VehicleParams
public interface VehicleParams
Vehicle parameters
- Since:
- 1.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Route computation optimization typestatic enum
Large vehicle parameters. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Get vehicle idint
Get vehicle maximum speedgetName()
Get vehicle namegetRoadCategoryParams
(RoadCategory roadCategory) Get vehicle speed limits for a specific road categoryGet route optimization modefloat
getTruckParameter
(VehicleParams.TruckParameter parameter) Get truck parameter valuefloat
Get maximal truck parameter valuegetType()
Get vehicle typevoid
setMaxSpeed
(int speedKmPH) Set vehicle maximum speedboolean
Set vehicle namevoid
setRoadCategoryParams
(RoadCategory roadCategory, Boolean isClosed, Integer speedExtraUrban, Integer speedUrban) Set vehicle speed limits for a specific road categoryvoid
setRouteOptimization
(VehicleParams.RouteOptimization optimization) Set route optimization modeboolean
setTruckParameter
(VehicleParams.TruckParameter parameter, float value) Set truck parameter value
-
Method Details
-
getId
Get vehicle id- Returns:
- vehicle unique ID
- Since:
- 1.0
-
getType
Get vehicle type- Returns:
- vehicle type
- Since:
- 1.0
-
getName
Get vehicle name- Returns:
- vehicle name
- Since:
- 1.0
-
setName
Set vehicle name- Parameters:
newName
- new vehicle profile name- Returns:
- true on success, false when a vehicle profile with the same name already existed
- Since:
- 4.3
-
getMaxSpeed
int getMaxSpeed()Get vehicle maximum speed- Returns:
- vehicle maximum speed in km/h
- Since:
- 1.0
-
setMaxSpeed
void setMaxSpeed(int speedKmPH) Set vehicle maximum speed- Parameters:
speedKmPH
- speed in km/h- Since:
- 1.0
-
getRoadCategoryParams
Get vehicle speed limits for a specific road category- Parameters:
roadCategory
- road category to get parameters for- Returns:
- road category parameters for roadCategory
- Since:
- 1.0
-
setRoadCategoryParams
void setRoadCategoryParams(@NonNull RoadCategory roadCategory, @Nullable Boolean isClosed, @Nullable Integer speedExtraUrban, @Nullable Integer speedUrban) Set vehicle speed limits for a specific road category- Parameters:
roadCategory
- road category to change parametersisClosed
- True/False to close/open roads of the category for routing or null to keep current valuespeedExtraUrban
- value in km/h to set speed outside towns or null to keep current valuespeedUrban
- value in km/h to set speed within towns or null to keep current value- Since:
- 1.0
-
getRouteOptimization
Get route optimization mode- Returns:
- current route calculation optimization mode
- Since:
- 1.0
-
setRouteOptimization
Set route optimization mode- Parameters:
optimization
- route calculation optimization mode- Since:
- 1.0
-
setTruckParameter
Set truck parameter value- Parameters:
parameter
- truck parameter to setvalue
- truck parameter value- Returns:
- false if not licensed, true otherwise
- Since:
- 1.0
-
getTruckParameter
Get truck parameter value- Parameters:
parameter
- truck parameter to get- Returns:
- truck parameter value
- Since:
- 1.0
-
getTruckParameterMaxValue
Get maximal truck parameter value- Parameters:
parameter
- truck parameter maximal value to get- Returns:
- truck parameter maximal value
- Since:
- 1.0
-