RouteDirectionOptions Class
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.
Options for rendering static images.
public class RouteDirectionOptions
type RouteDirectionOptions = class
Public Class RouteDirectionOptions
- Inheritance
-
RouteDirectionOptions
Constructors
RouteDirectionOptions() |
Constructor of RouteDirectionOptions. |
Properties
AccelerationEfficiency |
Specifies the efficiency of converting chemical energy stored in fuel to kinetic energy when the vehicle accelerates (i.e. KineticEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using |
AlternativeType |
Controls the optimality, with respect to the given planning criteria, of the calculated alternatives compared to the reference route. |
ArriveAt |
The date and time of arrival at the destination point. It must be specified as a dateTime. When a time zone offset is not specified it will be assumed to be that of the destination point. The arriveAt value must be in the future. The arriveAt parameter cannot be used in conjunction with departAt, minDeviationDistance or minDeviationTime. |
AuxiliaryPowerInKilowatts |
Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW). It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc. Sensible Values : 1.7 |
AuxiliaryPowerInLitersPerHour |
Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour. It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc. Sensible Values : 0.2 |
Avoid |
Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request. In calculateReachableRange requests, the value alreadyUsedRoads must not be used. |
ComputeBestWaypointOrder |
Re-order the route waypoints using a fast heuristic algorithm to reduce the route length. Yields best results when used in conjunction with routeType shortest. Notice that origin and destination are excluded from the optimized waypoint indices. To include origin and destination in the response, please increase all the indices by 1 to account for the origin, and then add the destination as the final index. Possible values are true or false. True computes a better order if possible, but is not allowed to be used in conjunction with maxAlternatives value greater than 0 or in conjunction with circle waypoints. False will use the locations in the given order and not allowed to be used in conjunction with routeRepresentation none. |
ConstantSpeedConsumptionInKilowattHoursPerHundredKilometer |
Specifies the speed-dependent component of consumption. Provided as an unordered list of speed/consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:
Electric consumption model .
|
ConstantSpeedConsumptionInLitersPerHundredKilometer |
Specifies the speed-dependent component of consumption. Provided as an unordered list of colon-delimited speed & consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:
|
CurrentChargeInKilowattHours |
Specifies the current electric energy supply in kilowatt hours (kWh).
This parameter co-exists with |
CurrentFuelInLiters |
Specifies the current supply of fuel in liters. Sensible Values : 55 |
DecelerationEfficiency |
Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates (i.e. ChemicalEnergySaved/KineticEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using |
DepartAt |
The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format (1996-12-19T16:39:57-08:00). |
DownhillEfficiency |
Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation (i.e. ChemicalEnergySaved/PotentialEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using |
FuelEnergyDensityInMegajoulesPerLiter |
Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ). It is used in conjunction with the |
InclineLevel |
Degree of hilliness for thrilling route. This parameter can only be used in conjunction with |
InstructionsType |
If specified, guidance instructions will be returned. Note that the instructionsType parameter cannot be used in conjunction with routeRepresentation=none. |
IsCommercialVehicle |
Whether the vehicle is used for commercial purposes. Commercial vehicles may not be allowed to drive on some roads. |
Language |
The language parameter determines the language of the guidance messages. Proper nouns (the names of streets, plazas, etc.) are returned in the specified language, or if that is not available, they are returned in an available language that is close to it. Allowed values are (a subset of) the IETF language tags. The currently supported languages are listed in the Supported languages section. Default value: EnglishGreatBritain |
MaxAlternatives |
Number of desired alternative routes to be calculated. Default: 0, minimum: 0 and maximum: 5. |
MaxChargeInKilowattHours |
Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.
This parameter co-exists with |
MinDeviationDistance |
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 meters. Can only be used when reconstructing a route. The minDeviationDistance parameter cannot be used in conjunction with arriveAt. |
MinDeviationTime |
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 |
RouteDirectionParameters |
Used for reconstructing a route and for calculating zero or more alternative routes to this reference route. The provided sequence of coordinates is used as input for route reconstruction. The alternative routes are calculated between the origin and destination points specified in the base path parameter locations. If both minDeviationDistance and minDeviationTime are set to zero, then these origin and destination points are expected to be at (or very near) the beginning and end of the reference route, respectively. Intermediate locations (waypoints) are not supported when using supportingPoints. Setting at least one of minDeviationDistance or minDeviationTime to a value greater than zero has the following consequences:
|
RouteRepresentationForBestOrder |
Specifies the representation of the set of routes provided as response. This parameter value can only be used in conjunction with computeBestOrder=true. |
RouteType |
The type of route requested. |
SectionFilter |
Specifies which of the section types is reported in the route response. <br><br>For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Multiple types can be used. The default sectionType refers to the travelMode input. By default travelMode is set to car. |
ShouldReportEffectiveSettings |
Specifies which data should be reported for diagnosis purposes. If true, it will reports the effective parameters or data used when calling the API. In the case of defaulted parameters the default will be reflected where the parameter was not specified by the caller. |
TravelMode |
The mode of travel for the requested route. If not defined, default is |
TravelTimeType |
Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. |
UphillEfficiency |
Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation (i.e. PotentialEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using |
UseTrafficData |
Possible values:
|
VehicleAxleWeightInKilograms |
Weight per axle of the vehicle in kilogram. A value of 0 means that weight restrictions per axle are not considered. |
VehicleEngineType |
Engine type of the vehicle. When a detailed Consumption Model is specified, it must be consistent with the value of |
VehicleHeading |
The directional heading of the vehicle in degrees starting at true North and continuing in clockwise direction. North is 0 degrees, east is 90 degrees, south is 180 degrees, west is 270 degrees. Possible values 0-359. |
VehicleHeightInMeters |
Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. |
VehicleLengthInMeters |
Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. |
VehicleLoadType |
Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. |
VehicleMaxSpeedInKilometersPerHour |
Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways.
|
VehicleWeightInKilograms |
Weight of the vehicle in kilograms.
|
VehicleWidthInMeters |
Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. |
Windingness |
Level of turns for thrilling route. This parameter can only be used in conjunction with |