Class DrivingOptions

com.yandex.mapkit.directions.driving

java.lang.Object ⇽ DrivingOptions

public class DrivingOptions

Driving options.

Constructors

DrivingOptions(@Nullable Double initialAzimuth, @Nullable Integer alternativeCount, @Nullable OfflineHandicap offlineHandicap, @Nullable Boolean avoidTolls)
DrivingOptions()

Use constructor with parameters in your code.

Methods

Integer getAlternativeCount()

The number of alternatives.

Boolean getAvoidTolls()

The 'avoidTolls' option instructs the router to return routes that avoid tolls, when possible.

Double getInitialAzimuth()

Starting location azimuth.

OfflineHandicap getOfflineHandicap()

The maximum time a user waits for the online route if the offline route is ready.

void serialize(Archive archive)
DrivingOptions setAlternativeCount(@Nullable Integer alternativeCount)

See getAlternativeCount().

DrivingOptions setAvoidTolls(@Nullable Boolean avoidTolls)

See getAvoidTolls().

DrivingOptions setInitialAzimuth(@Nullable Double initialAzimuth)

See getInitialAzimuth().

DrivingOptions setOfflineHandicap(@Nullable OfflineHandicap offlineHandicap)

See getOfflineHandicap().

Constructor Detail

DrivingOptions

public DrivingOptions (@Nullable Double initialAzimuth, @Nullable Integer alternativeCount, @Nullable OfflineHandicap offlineHandicap, @Nullable Boolean avoidTolls)

DrivingOptions

public DrivingOptions ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getAlternativeCount

public Integer getAlternativeCount ()

The number of alternatives.

Optional field, can be null.

getAvoidTolls

public Boolean getAvoidTolls ()

The 'avoidTolls' option instructs the router to return routes that avoid tolls, when possible.

Optional field, can be null.

getInitialAzimuth

public Double getInitialAzimuth ()

Starting location azimuth.

Optional field, can be null.

getOfflineHandicap

public OfflineHandicap getOfflineHandicap ()

The maximum time a user waits for the online route if the offline route is ready.

Optional field, can be null.

serialize

public void serialize (Archive archive)

setAlternativeCount

public DrivingOptions setAlternativeCount (@Nullable Integer alternativeCount)

See getAlternativeCount().

setAvoidTolls

public DrivingOptions setAvoidTolls (@Nullable Boolean avoidTolls)

See getAvoidTolls().

setInitialAzimuth

public DrivingOptions setInitialAzimuth (@Nullable Double initialAzimuth)

See getInitialAzimuth().

setOfflineHandicap

public DrivingOptions setOfflineHandicap (@Nullable OfflineHandicap offlineHandicap)

See getOfflineHandicap().