MapTrip Interface Android Reference Manual 9.10.1
Loading...
Searching...
No Matches
de.infoware.android.mti.VehicleProfile Class Reference

Static Public Member Functions

static native int getVehicleProfilesCount ()
 
static native int getVehicleProfile (int index)
 
static native int getActiveVehicleProfile ()
 
static native int activateVehicleProfile (int index)
 
static native int activateExtendedVehicleAttributes (boolean doActivate)
 
static native int setExtendedVehicleAttributes (int load, double totalWeightInKg, double weightPerAxleInKg, double totalLengthInMeters, double vehicleWidthInMeters, double vehicleHeightInMeters, int numberOfAxles, VehicleLoadTrc tunnelRestrictionCode, String profileName)
 
static void addListener (VehicleProfileListener listener)
 
static void removeListener (VehicleProfileListener listener)
 
static void removeAllListeners ()
 

Detailed Description

Member Function Documentation

◆ activateExtendedVehicleAttributes()

static native int de.infoware.android.mti.VehicleProfile.activateExtendedVehicleAttributes ( boolean  doActivate)
static

Activate or deactivate the extended vehicle attributes that has been set. Can be called before or after the extended attributes have been set. extended Vehicle pofile define the attributes of a truck and enable truck warnings see VehicleProfile.setExtendedVehicleAttributes().

Parameters
doActivate- true extended attributes shall be activated
Returns
Invokes callback VehicleProfileListener.activateExtendedVehicleAttributesResult().

◆ activateVehicleProfile()

static native int de.infoware.android.mti.VehicleProfile.activateVehicleProfile ( int  index)
static

Request to set a specific vehicle profile active at the given index. The number of available profiles can be retrieved via the call VehicleProfile.getVehicleProfilesCount(). This call might lead to a re-routing.

Parameters
index- 0 based index of the vehicle profile in the list
Returns
Invokes callback VehicleProfileListener.activateVehicleProfileResult().

◆ addListener()

static void de.infoware.android.mti.VehicleProfile.addListener ( VehicleProfileListener  listener)
static

◆ getActiveVehicleProfile()

static native int de.infoware.android.mti.VehicleProfile.getActiveVehicleProfile ( )
static

Request to get the index of the active vehicle profile. The concrete vehicle profile data can be received via VehicleProfile.getVehicleProfile().

Returns
Invokes callback VehicleProfileListener.getActiveVehicleProfileResult().

◆ getVehicleProfile()

static native int de.infoware.android.mti.VehicleProfile.getVehicleProfile ( int  index)
static

Request to get a specific vehicle profile at the given index. The number of available profiles can be retrieved via the call VehicleProfile.getVehicleProfilesCount().

Parameters
index- 0 based index of the vehicle profile in the list
Returns
Invokes callback VehicleProfileListener.getVehicleProfileResult().

◆ getVehicleProfilesCount()

static native int de.infoware.android.mti.VehicleProfile.getVehicleProfilesCount ( )
static

Returns the number of available Vehicle profiles. The individual profiles can be retrieved via VehicleProfile.getVehicleProfile(). Vehicle different vehicle profiles influence the calculation of the time to destination examples are types_fast for fast car or types Truck_Highway for trucks.

Returns
Invokes callback VehicleProfileListener.getVehicleProfilesCountResult().

◆ removeAllListeners()

static void de.infoware.android.mti.VehicleProfile.removeAllListeners ( )
static

◆ removeListener()

static void de.infoware.android.mti.VehicleProfile.removeListener ( VehicleProfileListener  listener)
static

◆ setExtendedVehicleAttributes()

static native int de.infoware.android.mti.VehicleProfile.setExtendedVehicleAttributes ( int  load,
double  totalWeightInKg,
double  weightPerAxleInKg,
double  totalLengthInMeters,
double  vehicleWidthInMeters,
double  vehicleHeightInMeters,
int  numberOfAxles,
VehicleLoadTrc  tunnelRestrictionCode,
String  profileName 
)
static

Specify the extended vehicle profile for truck routing. A specific profile will be created in the list of vehicle dimensions in MapTrip. To activate the extended profile, call VehicleProfile.activateExtendedVehicleAttributes().

Parameters
load- loading bitmask, additive combination of enum MTI_VEHICLE_LOAD_TYPE
totalWeightInKg- total weight of the vehicle including trailers
weightPerAxleInKg- weight for every axle
totalLengthInMeters- Length of the vehicle including trailers
vehicleWidthInMeters- Width of the vehicle including trailers
vehicleHeightInMeters- Height of the Vehicle including trailers
numberOfAxles- total amount of axles
tunnelRestrictionCode- ADR tunnel restriction code ( only valid for vehicle type VehicleType.TRUCK )
profileName- MapTrip displays this name in the vehicle dimensions dialog
Returns
Invokes callback VehicleProfileListener.setExtendedVehicleAttributesResult().