Class
BingRestTruckRouteOptions

Contains properties used to refine a Bing truck route service request.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
[Obsolete("This class is obsolete and will be deleted in Q2 2026.")]
public class BingRestTruckRouteOptions

Inheritance: objectBingRestTruckRouteOptions

Constructors

BingRestTruckRouteOptions()

Initializes a new instance of the BingRestTruckRouteOptions class.

Declaration

cs-api-definition
public BingRestTruckRouteOptions()

Properties

Avoid

Specifies the road types to minimize or avoid when a route is created for the driving travel mode.

Declaration

cs-api-definition
public BingRestTruckRouteAvoidance? Avoid { get; set; }

Property Value

BingRestTruckRouteAvoidance?

BorderRestrictions

Specifies the border crossing preference with respect to countries, dependent territories, special areas of geographical interest, states, subdivision, or provinces.

Declaration

cs-api-definition
public BingRestTruckRouteBorderRestrictions BorderRestrictions { get; set; }

Property Value

BingRestTruckRouteBorderRestrictions

DateTime

When specified and the route is optimized for timeWithTraffic, predictive traffic data is used to calculate the best route for the specified date time of departure.

Declaration

cs-api-definition
public DateTime? DateTime { get; set; }

Property Value

DateTime?

DistanceBeforeFirstTurn

Specifies the distance before the first turn is allowed in the route. An integer distance specified in meters. Use this parameter to make sure that the moving vehicle has enough distance to make the first turn.

Declaration

cs-api-definition
public int DistanceBeforeFirstTurn { get; set; }

Property Value

int

Heading

Specifies the initial heading for the route. An integer value between 0 and 359 that represents degrees from north where north is 0 degrees and the heading is specified clockwise from north. For example, setting the heading of 270 degrees creates a route that initially heads west.

Declaration

cs-api-definition
public int Heading { get; set; }

Property Value

int

Optimize

Specifies what parameters to use to optimize the route.

Declaration

cs-api-definition
public BingRestTruckRouteOptimization? Optimize { get; set; }

Property Value

BingRestTruckRouteOptimization?

OptimizeWaypoints

Instructs the API to rearrange the route waypoints and reduce the route cost specified with the optimize parameter. The route first waypoint and last waypoint order is not changed, their position is considered fixed.

Declaration

cs-api-definition
public bool? OptimizeWaypoints { get; set; }

Property Value

bool?

RouteAttributes

Specify to include or exclude parts of the routes response.

Declaration

cs-api-definition
public BingRestTruckRouteAttribute? RouteAttributes { get; set; }

Property Value

BingRestTruckRouteAttribute?

Tolerances

A set of double values. Each value specifies a tolerance that is used to reduce the number of points needed to display a route on a map and still maintain the route shape. If a point is removed and the new route still falls within the specified tolerance of the old route, then the point is not included in the subset of points returned for that tolerance.

Declaration

cs-api-definition
public double[] Tolerances { get; set; }

Property Value

double[]

VehicleSpec

The attributes that describe a vehicle.

Declaration

cs-api-definition
public BingRestVehicleSpec VehicleSpec { get; set; }

Property Value

BingRestVehicleSpec