ru.dgis.sdk.routing.TruckRouteSearchOptions | Android SDK | 2GIS Documentation

TruckRouteSearchOptions

Parameters for finding a route on freight transport. When searching for a route, only filled-in parameters are taken into account.

TruckRouteSearchOptions(
	car: CarRouteSearchOptions,
	truckLength: Int? = null,
	truckHeight: Int? = null,
	truckWidth: Int? = null,
	actualMass: Int? = null,
	maxPermittedMass: Int? = null,
	axleLoad: Int? = null,
	dangerousCargo: Boolean = false,
	explosiveCargo: Boolean = false,
	passIds: Set<TruckPassZonePassId> = setOf(),
	fallbackOnCar: Boolean = false
)

Parameters for finding a route on freight transport. When searching for a route, only filled-in parameters are taken into account.

Parameters
car
truckLength
truckHeight
truckWidth
actualMass
maxPermittedMass
axleLoad
dangerousCargo
explosiveCargo
passIds
fallbackOnCar
Returns
Properties

Route search options shared with other vehicles.

Length of the freight vehicle in millimeters.

Height of the cargo vehicle in millimeters.

Width of the freight vehicle in millimeters.

Actual weight of the freight vehicle in kilograms.

Maximum authorized mass of a goods vehicle in kilograms.

Axle load in kilograms.

A sign of the presence of dangerous goods.

A sign of the presence of explosives in the cargo.

Identifiers of the user's passes required for movement within the access zones.

Use automatic fallback from truck route search to car route search if you can't find a truck route that matches the search parameters.