Comparing version
{ | ||
"name": "bingmaps", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "These are the official TypeScript definitions for the Bing Maps V8 SDK. These can be used to provide intellisense and rich error detection to your IDE.", | ||
@@ -5,0 +5,0 @@ "typings": "types/MicrosoftMaps/Microsoft.Maps.All.d.ts", |
 | ||
[](https://www.nuget.org/packages/Microsoft.BingMaps.V8.TypeScript/) | ||
[](https://www.npmjs.com/package/bingmaps) | ||
[](https://www.nuget.org/packages/Microsoft.BingMaps.V8.TypeScript/) | ||
[](https://www.npmjs.com/package/bingmaps) | ||
[](LICENSE.md) | ||
@@ -57,2 +57,3 @@ | ||
``` | ||
If you want to also use some of the Bing Maps modules, you can either update the above reference to the following: | ||
@@ -83,2 +84,10 @@ | ||
**Note:** | ||
This project is just TypeScript definitions and not actual API code. You will need to add a script reference to the Bing Maps V8 Web Control in your application to load the functional API. For example: | ||
``` | ||
<script type='text/javascript' src='https://www.bing.com/api/maps/mapcontrol?callback=GetMap&key=[Your_Bing_Maps_Key]' async defer></script> | ||
``` | ||
## Screenshots ## | ||
@@ -85,0 +94,0 @@ |
@@ -50,2 +50,5 @@ /* | ||
/** Driving directions using truck attributes are calculationed. */ | ||
truck, | ||
/** Walking directions are calculated. */ | ||
@@ -425,2 +428,5 @@ walking | ||
time?: Date; | ||
/** Specifies the vehicle attributes to use when calculating a truck route. */ | ||
vehicleSpec?: IVehicleSpec; | ||
} | ||
@@ -482,2 +488,93 @@ | ||
/** Specifies the vehicle attributes to use when calculating a truck route. */ | ||
export interface IVehicleSpec { | ||
/** | ||
* The unit of measurement of width, height, length. Can be one of the following values: | ||
* • meter or m [default] | ||
* • foot or ft | ||
*/ | ||
dimensionUnit?: string; | ||
/** | ||
* The unit of measurement of weight. Can be one of the following values: | ||
* • kilogram or kg [default] | ||
* • pound or lb | ||
*/ | ||
weightUnit?: string; | ||
/** The height of the vehicle in the specified dimension units. */ | ||
vehicleHeight?: number; | ||
/** The width of the vehicle in the specified dimension units. */ | ||
vehicleWidth?: number; | ||
/** The length of the vehicle in the specified dimension units. */ | ||
vehicleLength?: number; | ||
/** The weight of the vehicle in the specified weight units. */ | ||
vehicleWeight?: number; | ||
/** The number of axles. */ | ||
vehicleAxles?: number; | ||
/** The number of trailers. */ | ||
vehicleTrailers?: number; | ||
/** Indicates if the truck is pulling a semi-trailer. Semi-trailer restrictions are mostly used in North America. */ | ||
vehicleSemi?: boolean; | ||
/** The maximum gradient the vehicle can drive measured in degrees. */ | ||
vehicleMaxGradient?: boolean; | ||
/** The minimum required radius for the vehicle to turn in the specified dimension units. */ | ||
vehicleMinTurnRadius?: number; | ||
/** Indicates if the vehicle shall avoid crosswinds. */ | ||
vehicleAvoidCrossWind?: boolean; | ||
/** Indicates if the route shall avoid the risk of grounding. */ | ||
vehicleAvoidGroundingRisk?: boolean; | ||
/** | ||
* A comma separated and case-sensitive list of one or more hazardous materials for which the vehicle is transporting. Possible values and their aliases are: | ||
* | ||
* • Combustable or C | ||
* • Corrosive or Cr | ||
* • Explosive or E | ||
* • Flammable or F | ||
* • FlammableSolid or FS | ||
* • Gas or G | ||
* • GoodsHarmfulToWater or WH | ||
* • Organic or O | ||
* • Other | ||
* • Poison or P | ||
* • PoisonousInhalation or PI | ||
* • Radioactive or R | ||
* • None | ||
* | ||
* Example: "WH,R,Poison" | ||
*/ | ||
vehicleHazardousMaterials?: string; | ||
/** | ||
* A comma separated and case-sensitive list of one or more hazardous materials for which the vehicle has a permit. Possible values and their aliases are: | ||
* | ||
* • AllAppropriateForLoad | ||
* • Combustible or C | ||
* • Corrosive or Cr | ||
* • Explosive or E | ||
* • Flammable or F | ||
* • FlammableSolid or FS | ||
* • Gas or G | ||
* • Organic or O | ||
* • Poison or P | ||
* • PoisonousInhalation or PI | ||
* • Radioactive or R | ||
* • None | ||
* | ||
* Example: "C,Explosive,Corrosive" | ||
*/ | ||
vehicleHazardousPermits?: string; | ||
} | ||
///////////////////////////////////// | ||
@@ -484,0 +581,0 @@ /// Classes |
@@ -0,0 +0,0 @@ /* |
316052
1.21%5746
1.41%136
7.09%