![]() |
MapTrip Interface Android Reference Manual 9.10.1
|
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 () |
|
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().
| doActivate | - true extended attributes shall be activated |
|
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.
| index | - 0 based index of the vehicle profile in the list |
|
static |
|
static |
Request to get the index of the active vehicle profile. The concrete vehicle profile data can be received via VehicleProfile.getVehicleProfile().
|
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().
| index | - 0 based index of the vehicle profile in the list |
|
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.
|
static |
|
static |
|
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().
| 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 |