RouteDirectionOptions.MinDeviationTime Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of seconds. Can only be used when reconstructing a route. The minDeviationTime parameter cannot be used in conjunction with arriveAt. Default value is 0. Setting )minDeviationTime_ to a value greater than zero has the following consequences:
The origin point of the calculateRoute Request must be on (or very near) the input reference route.
If this is not the case, an error is returned. However, the origin point does not need to be at the beginning of the input reference route (it can be thought of as the current vehicle position on the reference route).
The reference route, returned as the first route in the calculateRoute response, will start at the origin point specified in the calculateRoute Request.
The initial part of the input reference route up until the origin point will be excluded from the Response.
The values of minDeviationDistance
and minDeviationTime
determine how far alternative routes will be guaranteed to follow the reference route from the origin point onwards.
The route must use departAt
.
The VehicleHeading
is ignored.
public int? MinDeviationTime { get; set; }
member this.MinDeviationTime : Nullable<int> with get, set
Public Property MinDeviationTime As Nullable(Of Integer)
Property Value
Applies to
Azure SDK for .NET