diff --git a/specification/maps/data-plane/Common/preview/1.0/common.json b/specification/maps/data-plane/Common/preview/1.0/common.json index 8f05314cd2c9..f309474dceba 100644 --- a/specification/maps/data-plane/Common/preview/1.0/common.json +++ b/specification/maps/data-plane/Common/preview/1.0/common.json @@ -66,22 +66,29 @@ }, "BatchRequestBody": { "description": "This type represents the request body for the Batch service.", + "x-ms-client-name": "BatchRequest", "type": "object", "properties": { "batchItems": { - "description": "The list of queries to process.", - "type": "array", - "items": { - "description": "Batch Query object", - "type": "object", - "properties": { - "query": { - "description": "Partial query string.", - "type": "string", - "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" - } - } - } + "$ref": "#/definitions/BatchQueries" + } + } + }, + "BatchQueries": { + "description": "The list of queries to process.", + "type": "array", + "items": { + "$ref": "#/definitions/BatchQuery" + } + }, + "BatchQuery": { + "description": "Batch Query object", + "type": "object", + "properties": { + "query": { + "description": "A query string for the corresponding batch API endpoint. It is the exact query string you would use for a single (non-batch) API request.", + "type": "string", + "example": "?query=One, Microsoft Way, Redmond, WA 98052&limit=3" } } }, diff --git a/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteDirections.json b/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteDirections.json index 7ab075df4b74..c0ffa20e17f6 100644 --- a/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteDirections.json +++ b/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteDirections.json @@ -3,7 +3,7 @@ "format": "json", "api-version": "1.0", "query": "52.50931,13.42936:52.50274,13.43872", - "postRouteDirectionsRequestBody": { + "routeDirectionParameters": { "supportingPoints": { "type": "GeometryCollection", "geometries": [ diff --git a/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteDirectionsBatch.json b/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteDirectionsBatch.json index 71913667a5ca..1b13aed12776 100644 --- a/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteDirectionsBatch.json +++ b/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteDirectionsBatch.json @@ -2,7 +2,7 @@ "parameters": { "format": "json", "api-version": "1.0", - "postRouteDirectionsBatchRequestBody": { + "routeDirectionsBatchQueries": { "batchItems": [ { "query": "?query=47.639987,-122.128384:47.621252,-122.184408:47.596437,-122.332000&routeType=fastest&travelMode=car&maxAlternatives=99" diff --git a/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json b/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json index a636f6fc44d7..233adc0d3333 100644 --- a/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json +++ b/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteDirectionsBatchSync.json @@ -2,7 +2,7 @@ "parameters": { "format": "json", "api-version": "1.0", - "postRouteDirectionsBatchRequestBody": { + "routeDirectionsBatchQueries": { "batchItems": [ { "query": "?query=47.639987,-122.128384:47.621252,-122.184408:47.596437,-122.332000&routeType=fastest&travelMode=car&maxAlternatives=99" diff --git a/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteMatrix.json b/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteMatrix.json index d59b3f77816f..d4b118284d7e 100644 --- a/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteMatrix.json +++ b/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteMatrix.json @@ -3,7 +3,7 @@ "format": "json", "api-version": "1.0", "routeType": "shortest", - "postRouteMatrixRequestBody": { + "routeMatrixQuery": { "origins": { "type": "MultiPoint", "coordinates": [ diff --git a/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteMatrixSync.json b/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteMatrixSync.json index 0eb24efc72e0..31c84a58c599 100644 --- a/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteMatrixSync.json +++ b/specification/maps/data-plane/Route/preview/1.0/examples/PostRouteMatrixSync.json @@ -3,7 +3,7 @@ "format": "json", "api-version": "1.0", "routeType": "shortest", - "postRouteMatrixRequestBody": { + "routeMatrixQuery": { "origins": { "type": "MultiPoint", "coordinates": [ diff --git a/specification/maps/data-plane/Route/preview/1.0/route.json b/specification/maps/data-plane/Route/preview/1.0/route.json index 87a29b0487fd..abbcdd967375 100644 --- a/specification/maps/data-plane/Route/preview/1.0/route.json +++ b/specification/maps/data-plane/Route/preview/1.0/route.json @@ -18,7 +18,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure role-based access](https://docs.microsoft.com/en-us/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure role-based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built-in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios, we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Notes\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* \nThe `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* \nThe Azure role-based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.\n* \nUsage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently, Azure Active Directory [v1.0](https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", + "description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure role-based access](https://docs.microsoft.com/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure role-based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built-in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios, we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Notes\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* \nThe `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* \nThe Azure role-based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.\n* \nUsage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently, Azure Active Directory [v1.0](https://docs.microsoft.com/azure/active-directory/develop/azure-ad-endpoint-comparison) tokens are supported.", "scopes": { "https://atlas.microsoft.com/.default": "https://atlas.microsoft.com/.default" } @@ -143,18 +143,22 @@ "values": [ { "value": "fastest", + "name": "Fastest", "description": "The fastest route." }, { "value": "shortest", + "name": "Shortest", "description": "The shortest route by distance." }, { "value": "eco", + "name": "Economy", "description": "A route balanced by economy and speed." }, { "value": "thrilling", + "name": "Thrilling", "description": "Includes interesting or challenging roads and uses as few motorways as possible. You can choose the level of turns included and also the degree of hilliness. See the hilliness and windingness parameters for how to set this. There is a limit of 900 km on routes planned with `routeType`=thrilling" } ] @@ -191,8 +195,9 @@ }, "x-ms-parameter-location": "method" }, - "HillinessDegree": { + "InclineLevel": { "name": "hilliness", + "x-ms-client-name": "inclineLevel", "in": "query", "description": "Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling.", "type": "string", @@ -202,7 +207,7 @@ "high" ], "x-ms-enum": { - "name": "HillinessDegree", + "name": "InclineLevel", "modelAsString": true, "values": [ { @@ -356,11 +361,11 @@ "x-ms-parameter-location": "method" }, "ConstantSpeedConsumptionInLitersPerHundredkm": { + "x-ms-client-name": "ConstantSpeedConsumptionInLitersPerHundredKm", "name": "constantSpeedConsumptionInLitersPerHundredkm", "in": "query", "description": "\n\nSpecifies the speed-dependent component of consumption.\n\nProvided 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:\n\n * by linear interpolation, if the given speed lies in between two speeds in the list\n\n * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list\n\nThe list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.\n\nConsumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.\n\nSimilarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.\n\nThe valid range for the consumption values(expressed in l/100km) is between 0.01 and 100000.0.\n\nSensible Values : 50,6.3:130,11.5\n\n**Note** : This parameter is required for **The Combustion Consumption Model**.", - "type": "number", - "format": "float", + "type": "string", "x-ms-parameter-location": "method" }, "CurrentFuelInLiters": { @@ -368,7 +373,7 @@ "in": "query", "description": "Specifies the current supply of fuel in liters.\n\nSensible Values : 55", "type": "number", - "format": "float", + "format": "double", "x-ms-parameter-location": "method" }, "AuxiliaryPowerInLitersPerHour": { @@ -376,15 +381,16 @@ "in": "query", "description": "Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour.\n\nIt can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.\n\nSensible Values : 0.2", "type": "number", - "format": "float", + "format": "double", "x-ms-parameter-location": "method" }, "FuelEnergyDensityInMJoulesPerLiter": { + "x-ms-client-name": "FuelEnergyDensityInMegajoulesPerLiter", "name": "fuelEnergyDensityInMJoulesPerLiter", "in": "query", "description": "Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ). It is used in conjunction with the ***Efficiency** parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel.\n\nThis parameter is required if any ***Efficiency** parameter is set.\n\nSensible Values : 34.2", "type": "number", - "format": "float", + "format": "double", "x-ms-parameter-location": "method" }, "AccelerationEfficiency": { @@ -392,7 +398,9 @@ "in": "query", "description": "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 **fuelEnergyDensityInMJoulesPerLiter**.\n\nMust be paired with **decelerationEfficiency**.\n\nThe range of values allowed are 0.0 to 1/**decelerationEfficiency**.\n\nSensible Values : for **Combustion Model** : 0.33, for **Electric Model** : 0.66", "type": "number", - "format": "float", + "format": "double", + "minimum": 0, + "maximum": 1, "x-ms-parameter-location": "method" }, "DecelerationEfficiency": { @@ -400,7 +408,9 @@ "in": "query", "description": "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 **fuelEnergyDensityInMJoulesPerLiter**.\n\nMust be paired with **accelerationEfficiency**.\n\nThe range of values allowed are 0.0 to 1/**accelerationEfficiency**.\n\nSensible Values : for **Combustion Model** : 0.83, for **Electric Model** : 0.91", "type": "number", - "format": "float", + "format": "double", + "minimum": 0, + "maximum": 1, "x-ms-parameter-location": "method" }, "UphillEfficiency": { @@ -408,7 +418,9 @@ "in": "query", "description": "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 **fuelEnergyDensityInMJoulesPerLiter**.\n\nMust be paired with **downhillEfficiency**.\n\nThe range of values allowed are 0.0 to 1/**downhillEfficiency**.\n\nSensible Values : for **Combustion Model** : 0.27, for **Electric Model** : 0.74", "type": "number", - "format": "float", + "format": "double", + "minimum": 0, + "maximum": 1, "x-ms-parameter-location": "method" }, "DownhillEfficiency": { @@ -416,11 +428,14 @@ "in": "query", "description": "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 **fuelEnergyDensityInMJoulesPerLiter**.\n\nMust be paired with **uphillEfficiency**.\n\nThe range of values allowed are 0.0 to 1/**uphillEfficiency**.\n\nSensible Values : for **Combustion Model** : 0.51, for **Electric Model** : 0.73", "type": "number", - "format": "float", + "format": "double", + "minimum": 0, + "maximum": 1, "x-ms-parameter-location": "method" }, "ConstantSpeedConsumptionInkWhPerHundredkm": { "name": "constantSpeedConsumptionInkWhPerHundredkm", + "x-ms-client-name": "ConstantSpeedConsumptionInKwHPerHundredKm", "in": "query", "description": "Specifies the speed-dependent component of consumption.\n\nProvided 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:\n\n* by linear interpolation, if the given speed lies in between two speeds in the list\n\n* by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list\n\nThe list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.\n\nConsumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.\n\nSimilarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.\n\nThe valid range for the consumption values(expressed in kWh/100km) is between 0.01 and 100000.0.\n\nSensible Values : 50,8.2:130,21.3\n\nThis parameter is required for **Electric consumption model**.", "type": "string", @@ -428,23 +443,29 @@ }, "CurrentChargeInkWh": { "name": "currentChargeInkWh", + "x-ms-client-name": "CurrentChargeInKwH", "in": "query", "description": "Specifies the current electric energy supply in kilowatt hours (kWh).\n\nThis parameter co-exists with **maxChargeInkWh** parameter.\n\nThe range of values allowed are 0.0 to **maxChargeInkWh**.\n\nSensible Values : 43", - "type": "string", + "type": "number", + "format": "double", "x-ms-parameter-location": "method" }, "MaxChargeInkWh": { "name": "maxChargeInkWh", + "x-ms-client-name": "MaxChargeInKwH", "in": "query", "description": "Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.\n\nThis parameter co-exists with **currentChargeInkWh** parameter.\n\nMinimum value has to be greater than or equal to **currentChargeInkWh**.\n\nSensible Values : 85", - "type": "string", + "type": "number", + "format": "double", "x-ms-parameter-location": "method" }, "AuxiliaryPowerInkW": { "name": "auxiliaryPowerInkW", + "x-ms-client-name": "AuxiliaryPowerInKw", "in": "query", "description": "Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).\n\nIt can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.\n\nSensible Values : 1.7", - "type": "string", + "type": "number", + "format": "double", "x-ms-parameter-location": "method" }, "VehicleWeightMatrix": { @@ -452,6 +473,7 @@ "in": "query", "description": "Weight of the vehicle in kilograms.", "type": "integer", + "default": 0, "x-ms-parameter-location": "method" }, "VehicleWeight": { @@ -459,6 +481,7 @@ "in": "query", "description": "Weight of the vehicle in kilograms.\n\n* It is mandatory if any of the *Efficiency parameters are set.\n\n* It must be strictly positive when used in the context of the Consumption Model. Weight restrictions are considered.\n\n* If no detailed **Consumption Model** is specified and the value of **vehicleWeight** is non-zero, then weight restrictions are considered.\n\n* In all other cases, this parameter is ignored.\n\nSensible Values : for **Combustion Model** : 1600, for **Electric Model** : 1900", "type": "integer", + "default": 0, "x-ms-parameter-location": "method" }, "VehicleMaxSpeed": { @@ -466,6 +489,7 @@ "in": "query", "description": "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. \n\n* A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.\n\n* A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.", "type": "integer", + "default": 0, "x-ms-parameter-location": "method" }, "VehicleLength": { @@ -473,7 +497,8 @@ "in": "query", "description": "Length of the vehicle in meters. A value of 0 means that length restrictions are not considered.", "type": "number", - "format": "float", + "format": "double", + "default": 0, "x-ms-parameter-location": "method" }, "VehicleHeight": { @@ -481,7 +506,8 @@ "in": "query", "description": "Height of the vehicle in meters. A value of 0 means that height restrictions are not considered.", "type": "number", - "format": "float", + "format": "double", + "default": 0, "x-ms-parameter-location": "method" }, "VehicleWidth": { @@ -489,7 +515,8 @@ "in": "query", "description": "Width of the vehicle in meters. A value of 0 means that width restrictions are not considered.", "type": "number", - "format": "float", + "format": "double", + "default": 0, "x-ms-parameter-location": "method" }, "VehicleAxleWeight": { @@ -497,13 +524,16 @@ "in": "query", "description": "Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered.", "type": "integer", + "default": 0, "x-ms-parameter-location": "method" }, "VehicleCommercial": { "name": "vehicleCommercial", + "x-ms-client-name": "isCommercialVehicle", "in": "query", - "description": "Vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.", + "description": "Whether the vehicle is used for commercial purposes. Commercial vehicles may not be allowed to drive on some roads.", "type": "boolean", + "default": false, "x-ms-parameter-location": "method" }, "DepartAt": { @@ -524,6 +554,7 @@ }, "SectionType": { "name": "sectionType", + "x-ms-client-name": "FilterSectionType", "in": "query", "description": "Specifies which of the section types is reported in the route response.

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", "type": "string", @@ -537,7 +568,9 @@ "tollVignette", "traffic", "travelMode", - "tunnel" + "tunnel", + "carpool", + "urban" ], "x-ms-enum": { "name": "SectionType", @@ -545,43 +578,63 @@ "values": [ { "value": "carTrain", - "description": "Get sections if the route includes car trains." + "name": "CarOrTrain", + "description": "Sections of the route that are cars or trains." }, { "value": "country", - "description": "Countries the route has parts in." + "name": "Country", + "description": "Sections indicating which countries the route is in." }, { "value": "ferry", - "description": "Get sections if the route includes ferries." + "name": "Ferry", + "description": "Sections of the route that are ferries." }, { "value": "motorway", - "description": "Get sections if the route includes motorways." + "name": "Motorway", + "description": "Sections of the route that are motorways." }, { "value": "pedestrian", - "description": "Get sections which are suited for pedestrians." + "name": "Pedestrian", + "description": "Sections of the route that are only suited for pedestrians." }, { "value": "tollRoad", - "description": "Get sections which require a toll to be payed." + "name": "TollRoad", + "description": "Sections of the route that require a toll to be payed." }, { "value": "tollVignette", - "description": "Get sections which require a toll vignette to be present." + "name": "TollVignette", + "description": "Sections of the route that require a toll vignette to be present." }, { "value": "traffic", - "description": "Get sections which contain traffic information." + "name": "Traffic", + "description": "Sections of the route that contain traffic information." }, { "value": "travelMode", - "description": "Get sections in relation to the request parameter `travelMode`." + "name": "TravelMode", + "description": "Sections in relation to the request parameter `travelMode`." }, { "value": "tunnel", - "description": "Get sections if the route includes tunnels." + "name": "Tunnel", + "description": "Sections of the route that are tunnels." + }, + { + "value": "carpool", + "name": "Carpool", + "description": "Sections of the route that require use of carpool (HOV/High Occupancy Vehicle) lanes." + }, + { + "value": "urban", + "name": "Urban", + "description": "Sections of the route that are located within urban areas." } ] }, @@ -589,13 +642,15 @@ }, "ComputeBestOrder": { "name": "computeBestOrder", + "x-ms-client-name": "computeBestWaypointOrder", "in": "query", "description": "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_.", "type": "boolean", "x-ms-parameter-location": "method" }, - "RouteRepresentation": { + "RouteRepresentationForBestOrder": { "name": "routeRepresentation", + "x-ms-client-name": "routeRepresentationForBestOrder", "in": "query", "description": "Specifies the representation of the set of routes provided as response. This parameter value can only be used in conjunction with computeBestOrder=true.", "type": "string", @@ -605,7 +660,7 @@ "none" ], "x-ms-enum": { - "name": "RouteRepresentation", + "name": "RouteRepresentationForBestOrder", "modelAsString": true, "values": [ { @@ -624,8 +679,9 @@ }, "x-ms-parameter-location": "method" }, - "ComputeTravelTimeFor": { + "ComputeTravelTime": { "name": "computeTravelTimeFor", + "x-ms-client-name": "computeTravelTime", "in": "query", "description": "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.", "type": "string", @@ -634,7 +690,7 @@ "all" ], "x-ms-enum": { - "name": "ComputeTravelTimeFor", + "name": "ComputeTravelTime", "modelAsString": true, "values": [ { @@ -663,10 +719,24 @@ "in": "query", "description": "Specifies which data should be reported for diagnosis purposes. The only possible value is _effectiveSettings_. 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.", "type": "string", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "enum": [ + "effectiveSettings" + ], + "x-ms-enum": { + "name": "Report", + "modelAsString": true, + "values": [ + { + "value": "effectiveSettings", + "description": "Reports the effective parameters or data used when calling the API." + } + ] + } }, "Traffic": { "name": "traffic", + "x-ms-client-name": "useTrafficData", "in": "query", "description": "Possible values: \n * true - Do consider all available traffic information during routing\n * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored \n during routing, the effect of historic traffic on effective road speeds is still incorporated.", "type": "boolean", @@ -729,6 +799,7 @@ }, "MatrixId": { "name": "format", + "x-ms-client-name": "matrixId", "description": "Matrix id received after the Matrix Route request was accepted successfully.", "type": "string", "in": "path", @@ -737,24 +808,34 @@ }, "BatchId": { "name": "format", + "x-ms-client-name": "batchId", "description": "Batch id for querying the operation.", "type": "string", "in": "path", "required": true, "x-ms-parameter-location": "method" + }, + "Query": { + "name": "query", + "x-ms-client-name": "routePoints", + "in": "query", + "description": "The Coordinates through which the route is calculated, delimited by a colon. A minimum of two coordinates is required. The first one is the origin and the last is the destination of the route. Optional coordinates in-between act as WayPoints in the route. You can pass up to 150 WayPoints.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" } }, "paths": { "/route/matrix/{format}": { "post": { "description": "\n\n**Applies to**: S1 pricing tier.\n\nThe Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API.\n\n\nFor each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API.\n\n\nThe maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations).\n\n\n\n### Submit Synchronous Route Matrix Request\nIf your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square).\n\n```\nPOST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n\n### Submit Asynchronous Route Matrix Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds.\n\n\nThe maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square).\n\n\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\n\n\n\n```\nPOST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}\n```\n\nHere's a typical sequence of asynchronous operations:\n1. Client sends a Route Matrix POST request to Azure Maps\n\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Route Matrix request has been accepted.\n\n > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code.\n\n\n3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:\n\n ```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n ```\n\n\n4. Client issues a GET request on the download URL obtained in Step 3 to download the results\n\n### Download Sync Results\nWhen you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.\n\n### Download Async Results\nWhen a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:\n```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n```\n\nThe URL provided by the location header will return the following responses when a `GET` request is issued.\n\n > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.", - "operationId": "PostRouteMatrix", + "operationId": "RequestRouteMatrix", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-examples": { - "PostRouteMatrix": { + "Successfully submit a route matrix request": { "$ref": "./examples/PostRouteMatrix.json" } }, @@ -775,7 +856,7 @@ "type": "boolean" }, { - "$ref": "#/parameters/ComputeTravelTimeFor" + "$ref": "#/parameters/ComputeTravelTime" }, { "$ref": "#/parameters/SectionType" @@ -808,7 +889,7 @@ "$ref": "#/parameters/WindingnessLevel" }, { - "$ref": "#/parameters/HillinessDegree" + "$ref": "#/parameters/InclineLevel" }, { "$ref": "#/parameters/TravelMode" @@ -826,12 +907,12 @@ "$ref": "#/parameters/VehicleLoadType" }, { - "name": "postRouteMatrixRequestBody", + "name": "routeMatrixQuery", "description": "The matrix of origin and destination coordinates to compute the route distance, travel time and other summary for each cell of the matrix based on the input parameters. The minimum and the maximum cell count supported are 1 and **700** for async and **100** for sync respectively. For example, it can be 35 origins and 20 destinations or 25 origins and 25 destinations for async API.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PostRouteMatrixRequestBody" + "$ref": "#/definitions/RouteMatrixQuery" } } ], @@ -858,7 +939,7 @@ "final-state-via": "original-uri" }, "x-ms-examples": { - "GetRouteMatrix": { + "Successfully retrieve the status for a route matrix request": { "$ref": "./examples/GetRouteMatrix.json" } }, @@ -892,9 +973,9 @@ "/route/matrix/sync/{format}": { "post": { "description": "\n\n**Applies to**: S1 pricing tier.\n\nThe Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API.\n\n\nFor each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API.\n\n\nThe maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations).\n\n\n\n### Submit Synchronous Route Matrix Request\nIf your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square).\n\n```\nPOST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n\n### Submit Asynchronous Route Matrix Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds.\n\n\nThe maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square).\n\n\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\n\n\n\n```\nPOST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}\n```\n\nHere's a typical sequence of asynchronous operations:\n1. Client sends a Route Matrix POST request to Azure Maps\n\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Route Matrix request has been accepted.\n\n > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code.\n\n\n3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:\n\n ```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n ```\n\n\n4. Client issues a GET request on the download URL obtained in Step 3 to download the results\n\n### Download Sync Results\nWhen you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.\n\n### Download Async Results\nWhen a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:\n```\n GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}\n```\n\nThe URL provided by the location header will return the following responses when a `GET` request is issued.\n\n > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.", - "operationId": "PostRouteMatrixSync", + "operationId": "RequestRouteMatrixSync", "x-ms-examples": { - "PostRouteMatrixSync": { + "Successfully retrieve a route matrix request result synchronously": { "$ref": "./examples/PostRouteMatrixSync.json" } }, @@ -915,7 +996,7 @@ "type": "boolean" }, { - "$ref": "#/parameters/ComputeTravelTimeFor" + "$ref": "#/parameters/ComputeTravelTime" }, { "$ref": "#/parameters/SectionType" @@ -948,7 +1029,7 @@ "$ref": "#/parameters/WindingnessLevel" }, { - "$ref": "#/parameters/HillinessDegree" + "$ref": "#/parameters/InclineLevel" }, { "$ref": "#/parameters/TravelMode" @@ -966,12 +1047,12 @@ "$ref": "#/parameters/VehicleLoadType" }, { - "name": "postRouteMatrixRequestBody", + "name": "routeMatrixQuery", "description": "The matrix of origin and destination coordinates to compute the route distance, travel time and other summary for each cell of the matrix based on the input parameters. The minimum and the maximum cell count supported are 1 and **700** for async and **100** for sync respectively. For example, it can be 35 origins and 20 destinations or 25 origins and 25 destinations for async API.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PostRouteMatrixRequestBody" + "$ref": "#/definitions/RouteMatrixQuery" } } ], @@ -996,7 +1077,7 @@ "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nReturns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day.\n\nInformation returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected.\n\nRouting service provides a set of parameters for a detailed description of vehicle-specific Consumption Model. Please check [Consumption Model](https://docs.microsoft.com/azure/azure-maps/consumption-model) for detailed explanation of the concepts and parameters involved.", "operationId": "GetRouteDirections", "x-ms-examples": { - "GetRouteDirections": { + "Successfully retrieve a route between an origin and a destination": { "$ref": "./examples/GetRouteDirections.json" } }, @@ -1011,11 +1092,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { - "name": "query", - "in": "query", - "description": "The Coordinates through which the route is calculated, delimited by a colon. A minimum of two coordinates is required. The first one is the origin and the last is the destination of the route. Optional coordinates in-between act as WayPoints in the route. You can pass up to 150 WayPoints.", - "required": true, - "type": "string" + "$ref": "#/parameters/Query" }, { "name": "maxAlternatives", @@ -1059,10 +1136,10 @@ "$ref": "#/parameters/ComputeBestOrder" }, { - "$ref": "#/parameters/RouteRepresentation" + "$ref": "#/parameters/RouteRepresentationForBestOrder" }, { - "$ref": "#/parameters/ComputeTravelTimeFor" + "$ref": "#/parameters/ComputeTravelTime" }, { "$ref": "#/parameters/VehicleHeading" @@ -1098,7 +1175,7 @@ "$ref": "#/parameters/WindingnessLevel" }, { - "$ref": "#/parameters/HillinessDegree" + "$ref": "#/parameters/InclineLevel" }, { "$ref": "#/parameters/TravelMode" @@ -1159,7 +1236,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/RouteDirectionsResponse" + "$ref": "#/definitions/RouteDirections" } }, "default": { @@ -1169,9 +1246,9 @@ }, "post": { "description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nReturns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day.\n\nInformation returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected.\n\nRouting service provides a set of parameters for a detailed description of a vehicle-specific Consumption Model. Please check [Consumption Model](https://docs.microsoft.com/azure/azure-maps/consumption-model) for detailed explanation of the concepts and parameters involved.", - "operationId": "PostRouteDirections", + "operationId": "GetRouteDirectionsWithAdditionalParameters", "x-ms-examples": { - "PostRouteDirections": { + "Successfully retrieve a route between an origin and a destination with additional parameters in the body": { "$ref": "./examples/PostRouteDirections.json" } }, @@ -1186,11 +1263,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat" }, { - "name": "query", - "in": "query", - "description": "The Coordinates through which the route is calculated. Needs two coordinates at least. Delimited by colon. First one is the origin and the last is the destination of the route. The coordinates are in a lat,long format. Optional coordinates in between act as WayPoints in the route.", - "required": true, - "type": "string" + "$ref": "#/parameters/Query" }, { "name": "maxAlternatives", @@ -1228,10 +1301,10 @@ "$ref": "#/parameters/ComputeBestOrder" }, { - "$ref": "#/parameters/RouteRepresentation" + "$ref": "#/parameters/RouteRepresentationForBestOrder" }, { - "$ref": "#/parameters/ComputeTravelTimeFor" + "$ref": "#/parameters/ComputeTravelTime" }, { "$ref": "#/parameters/VehicleHeading" @@ -1273,7 +1346,7 @@ "$ref": "#/parameters/WindingnessLevel" }, { - "$ref": "#/parameters/HillinessDegree" + "$ref": "#/parameters/InclineLevel" }, { "$ref": "#/parameters/TravelMode" @@ -1330,12 +1403,12 @@ "$ref": "#/parameters/AuxiliaryPowerInkW" }, { - "name": "postRouteDirectionsRequestBody", + "name": "routeDirectionParameters", "description": "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.\n\nSetting at least one of minDeviationDistance or minDeviationTime to a value greater than zero has the following consequences:\n\n* 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).\n* 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.\n* The values of minDeviationDistance and minDeviationTime determine how far alternative routes will be guaranteed to follow the reference route from the origin point onwards.\n* The route must use departAt.\n* The vehicleHeading is ignored.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PostRouteDirectionsRequestBody" + "$ref": "#/definitions/RouteDirectionParameters" } } ], @@ -1343,7 +1416,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/RouteDirectionsResponse" + "$ref": "#/definitions/RouteDirections" } }, "default": { @@ -1357,7 +1430,7 @@ "description": "__Route Range (Isochrone) API__\n\n\n**Applies to**: S1 pricing tier.\n\nThis service will calculate a set of locations that can be reached from the origin point based on fuel, energy, time or distance budget that is specified. A polygon boundary (or Isochrone) is returned in a counterclockwise orientation as well as the precise polygon center which was the result of the origin point.\n\nThe returned polygon can be used for further processing such as [Search Inside Geometry](https://docs.microsoft.com/rest/api/maps/search/postsearchinsidegeometry) to search for POIs within the provided Isochrone.", "operationId": "GetRouteRange", "x-ms-examples": { - "GetRouteRange": { + "Successfully retrieve a set of locations that can be reached from the origin point based on various conditions": { "$ref": "./examples/GetRouteRange.json" } }, @@ -1376,35 +1449,43 @@ "in": "query", "description": "The Coordinate from which the range calculation should start.", "required": true, - "type": "string" + "type": "array", + "collectionFormat": "csv", + "minItems": 2, + "maxItems": 2, + "items": { + "type": "number", + "format": "double" + } }, { "name": "fuelBudgetInLiters", "in": "query", "description": "Fuel budget in liters that determines maximal range which can be travelled using the specified Combustion Consumption Model.
When fuelBudgetInLiters is used, it is mandatory to specify a detailed Combustion Consumption Model.
Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used.", "type": "number", - "format": "float" + "format": "double" }, { "name": "energyBudgetInkWh", + "x-ms-client-name": "energyBudgetInKwH", "in": "query", "description": "Electric energy budget in kilowatt hours (kWh) that determines maximal range which can be travelled using the specified Electric Consumption Model.
When energyBudgetInkWh is used, it is mandatory to specify a detailed Electric Consumption Model.
Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used.", "type": "number", - "format": "float" + "format": "double" }, { "name": "timeBudgetInSec", "in": "query", "description": "Time budget in seconds that determines maximal range which can be travelled using driving time. The Consumption Model will only affect the range when routeType is eco.
Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used.", "type": "number", - "format": "float" + "format": "double" }, { "name": "distanceBudgetInMeters", "in": "query", "description": "Distance budget in meters that determines maximal range which can be travelled using driving distance. The Consumption Model will only affect the range when routeType is eco.
Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used.", "type": "number", - "format": "float" + "format": "double" }, { "$ref": "#/parameters/DepartAt" @@ -1422,7 +1503,7 @@ "$ref": "#/parameters/TravelMode" }, { - "$ref": "#/parameters/HillinessDegree" + "$ref": "#/parameters/InclineLevel" }, { "$ref": "#/parameters/WindingnessLevel" @@ -1495,7 +1576,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GetRouteRangeResponse" + "$ref": "#/definitions/RouteRangeResponse" } }, "default": { @@ -1506,14 +1587,14 @@ }, "/route/directions/batch/{format}": { "post": { - "description": "**Route Directions Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/route/directions/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex route requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **700** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Route Directions Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n``` GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0 ```\nNote:- Please remember to add AUTH information (subscription-key/azure_auth - See [Security](#security)) to the _status URI_ before running it.
\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _route directions_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 3 _route directions_ queries:\n\n\n```json\n{\n \"batchItems\": [\n { \"query\": \"?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false\" },\n { \"query\": \"?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest\" },\n { \"query\": \"?query=48.923159,-122.557362:32.621279,-116.840362\" }\n ]\n}\n```\n\nA _route directions_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _route directions_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections#uri-parameters). The string values in the _route directions_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **700** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n \n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`RouteDirectionsResponse`](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections#routedirectionsresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 1 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 1,\n \"totalRequests\": 2\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\": {\n \"routes\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"legs\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"points\": [\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.34892\n },\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.3485\n },\n {\n \"latitude\": 47.62095,\n \"longitude\": -122.3476\n }\n ]\n }\n ],\n \"sections\": [\n {\n \"startPointIndex\": 0,\n \"endPointIndex\": 40,\n \"sectionType\": \"TRAVEL_MODE\",\n \"travelMode\": \"bicycle\"\n }\n ]\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", - "operationId": "PostRouteDirectionsBatch", + "description": "**Route Directions Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries.\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex route requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **700** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Route Directions Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n``` GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0 ```\nNote:- Please remember to add AUTH information (subscription-key/azure_auth - See [Security](#security)) to the _status URI_ before running it.
\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _route directions_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 3 _route directions_ queries:\n\n\n```json\n{\n \"batchItems\": [\n { \"query\": \"?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false\" },\n { \"query\": \"?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest\" },\n { \"query\": \"?query=48.923159,-122.557362:32.621279,-116.840362\" }\n ]\n}\n```\n\nA _route directions_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _route directions_ [URI parameters](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#uri-parameters). The string values in the _route directions_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **700** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n \n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 1 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 1,\n \"totalRequests\": 2\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\": {\n \"routes\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"legs\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"points\": [\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.34892\n },\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.3485\n },\n {\n \"latitude\": 47.62095,\n \"longitude\": -122.3476\n }\n ]\n }\n ],\n \"sections\": [\n {\n \"startPointIndex\": 0,\n \"endPointIndex\": 40,\n \"sectionType\": \"TRAVEL_MODE\",\n \"travelMode\": \"bicycle\"\n }\n ]\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "operationId": "RequestRouteDirectionsBatch", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-examples": { - "PostRouteDirectionsBatch": { + "Successfully submit a route direction batch request": { "$ref": "./examples/PostRouteDirectionsBatch.json" } }, @@ -1528,9 +1609,9 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { - "name": "postRouteDirectionsBatchRequestBody", + "name": "routeDirectionsBatchQueries", "in": "body", - "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", + "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", "required": true, "schema": { "$ref": "../../../Common/preview/1.0/common.json#/definitions/BatchRequestBody" @@ -1553,14 +1634,14 @@ } }, "get": { - "description": "### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n \n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`RouteDirectionsResponse`](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections#routedirectionsresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 1 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 1,\n \"totalRequests\": 2\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\": {\n \"routes\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"legs\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"points\": [\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.34892\n },\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.3485\n },\n {\n \"latitude\": 47.62095,\n \"longitude\": -122.3476\n }\n ]\n }\n ],\n \"sections\": [\n {\n \"startPointIndex\": 0,\n \"endPointIndex\": 40,\n \"sectionType\": \"TRAVEL_MODE\",\n \"travelMode\": \"bicycle\"\n }\n ]\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "description": "### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n \n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 1 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 1,\n \"totalRequests\": 2\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\": {\n \"routes\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"legs\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"points\": [\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.34892\n },\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.3485\n },\n {\n \"latitude\": 47.62095,\n \"longitude\": -122.3476\n }\n ]\n }\n ],\n \"sections\": [\n {\n \"startPointIndex\": 0,\n \"endPointIndex\": 40,\n \"sectionType\": \"TRAVEL_MODE\",\n \"travelMode\": \"bicycle\"\n }\n ]\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", "operationId": "GetRouteDirectionsBatch", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "original-uri" }, "x-ms-examples": { - "GetRouteDirectionsBatch": { + "Successfully retrieve the status for the route direction batch request": { "$ref": "./examples/GetRouteDirectionsBatch.json" } }, @@ -1593,10 +1674,10 @@ }, "/route/directions/batch/sync/{format}": { "post": { - "description": "**Route Directions Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/route/directions/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Submit Asynchronous Batch Request\nThe Asynchronous API is appropriate for processing big volumes of relatively complex route requests\n- It allows the retrieval of results in a separate call (multiple downloads are possible).\n- The asynchronous API is optimized for reliability and is not expected to run into a timeout.\n- The number of batch items is limited to **700** for this API.\n\nWhen you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.\nThe asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.\n\nPlease note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:\n1. Client sends a Route Directions Batch `POST` request to Azure Maps\n2. The server will respond with one of the following:\n\n > HTTP `202 Accepted` - Batch request has been accepted.\n\n > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.\n\n3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.\n This status URI looks like following:\n\n``` GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0 ```\nNote:- Please remember to add AUTH information (subscription-key/azure_auth - See [Security](#security)) to the _status URI_ before running it.
\n4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.\n\n### POST Body for Batch Request\nTo send the _route directions_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 3 _route directions_ queries:\n\n\n```json\n{\n \"batchItems\": [\n { \"query\": \"?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false\" },\n { \"query\": \"?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest\" },\n { \"query\": \"?query=48.923159,-122.557362:32.621279,-116.840362\" }\n ]\n}\n```\n\nA _route directions_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _route directions_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections#uri-parameters). The string values in the _route directions_ query must be properly escaped (e.g. \" character should be escaped with \\\\ ) and it should also be properly URL-encoded.\n\n\nThe async API allows caller to batch up to **700** queries and sync API up to **100** queries, and the batch should contain at least **1** query.\n\n\n### Download Asynchronous Batch Results\nTo download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:\n\n```\nhttps://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}\n```\nHere's the typical sequence of operations for downloading the batch results:\n1. Client sends a `GET` request using the _download URL_.\n2. The server will respond with one of the following:\n \n > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.\n\n > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.\n\n\n\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`RouteDirectionsResponse`](https://docs.microsoft.com/en-us/rest/api/maps/route/getroutedirections#routedirectionsresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 1 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 1,\n \"totalRequests\": 2\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\": {\n \"routes\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"legs\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"points\": [\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.34892\n },\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.3485\n },\n {\n \"latitude\": 47.62095,\n \"longitude\": -122.3476\n }\n ]\n }\n ],\n \"sections\": [\n {\n \"startPointIndex\": 0,\n \"endPointIndex\": 40,\n \"sectionType\": \"TRAVEL_MODE\",\n \"travelMode\": \"bicycle\"\n }\n ]\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", - "operationId": "PostRouteDirectionsBatchSync", + "description": "**Route Directions Batch API**\n\n\n**Applies to**: S1 pricing tier.\n\n\n\nThe Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries.\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/route/directions/batch/sync/json?api-version=1.0&subscription-key={subscription-key}\n```\n### Batch Response Model\nThe returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:\n\n - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\nHere's a sample Batch Response with 1 _successful_ and 1 _failed_ result:\n\n\n```json\n{\n \"summary\": {\n \"successfulRequests\": 1,\n \"totalRequests\": 2\n },\n \"batchItems\": [\n {\n \"statusCode\": 200,\n \"response\": {\n \"routes\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"legs\": [\n {\n \"summary\": {\n \"lengthInMeters\": 1758,\n \"travelTimeInSeconds\": 387,\n \"trafficDelayInSeconds\": 0,\n \"departureTime\": \"2018-07-17T00:49:56+00:00\",\n \"arrivalTime\": \"2018-07-17T00:56:22+00:00\"\n },\n \"points\": [\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.34892\n },\n {\n \"latitude\": 47.62094,\n \"longitude\": -122.3485\n },\n {\n \"latitude\": 47.62095,\n \"longitude\": -122.3476\n }\n ]\n }\n ],\n \"sections\": [\n {\n \"startPointIndex\": 0,\n \"endPointIndex\": 40,\n \"sectionType\": \"TRAVEL_MODE\",\n \"travelMode\": \"bicycle\"\n }\n ]\n }\n ]\n }\n },\n {\n \"statusCode\": 400,\n \"response\":\n {\n \"error\":\n {\n \"code\": \"400 BadRequest\",\n \"message\": \"Bad request: one or more parameters were incorrectly specified or are mutually exclusive.\"\n }\n }\n }\n ]\n}\n```", + "operationId": "RequestRouteDirectionsBatchSync", "x-ms-examples": { - "PostRouteDirectionsBatchSync": { + "Successfully retrieve the route direction batch result synchronously": { "$ref": "./examples/PostRouteDirectionsBatchSync.json" } }, @@ -1611,7 +1692,7 @@ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat" }, { - "name": "postRouteDirectionsBatchRequestBody", + "name": "routeDirectionsBatchQueries", "in": "body", "description": "The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query.", "required": true, @@ -1638,12 +1719,12 @@ } }, "definitions": { - "PostRouteDirectionsRequestBody": { + "RouteDirectionParameters": { "type": "object", "description": "Post body parameters for Route directions.", "properties": { "supportingPoints": { - "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", + "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.\n Please refer to [Supporting Points](https://docs.microsoft.com/azure/azure-maps/how-to-use-best-practices-for-routing#calculate-and-bias-alternative-routes-using-supporting-points) for details.", "$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonGeometryCollection" }, "avoidVignette": { @@ -1666,7 +1747,7 @@ } } }, - "RouteDirectionsResponse": { + "RouteDirections": { "description": "This object is returned from a successful Route Directions call", "type": "object", "properties": { @@ -1680,7 +1761,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/RouteDirectionsResult" + "$ref": "#/definitions/Route" } }, "optimizedWaypoints": { @@ -1692,22 +1773,22 @@ } }, "report": { - "$ref": "#/definitions/RouteResponseReport" + "$ref": "#/definitions/RouteReport" } } }, - "RouteDirectionsResult": { + "Route": { "type": "object", "properties": { "summary": { - "$ref": "#/definitions/RouteDirectionsSummary" + "$ref": "#/definitions/RouteSummary" }, "legs": { "description": "Legs array", "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/RouteResultLeg" + "$ref": "#/definitions/RouteLeg" } }, "sections": { @@ -1715,15 +1796,15 @@ "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/RouteResultSection" + "$ref": "#/definitions/RouteSection" } }, "guidance": { - "$ref": "#/definitions/RouteResultGuidance" + "$ref": "#/definitions/RouteGuidance" } } }, - "RouteDirectionsSummary": { + "RouteSummary": { "description": "Summary object", "type": "object", "readOnly": true, @@ -1744,14 +1825,10 @@ "readOnly": true }, "departureTime": { - "description": "Departure Time property", - "type": "string", - "readOnly": true + "$ref": "#/definitions/DepartureTime" }, "arrivalTime": { - "description": "Arrival Time property", - "type": "string", - "readOnly": true + "$ref": "#/definitions/ArrivalTime" } } }, @@ -1771,11 +1848,12 @@ } } }, - "RouteResultLeg": { + "RouteLeg": { + "description": "A description of a part of a route, comprised of a list of points. Each additional waypoint provided in the request will result in an additional leg in the returned route.", "type": "object", "properties": { "summary": { - "$ref": "#/definitions/RouteResultLegSummary" + "$ref": "#/definitions/RouteLegSummary" }, "points": { "description": "Points array", @@ -1787,7 +1865,7 @@ } } }, - "RouteResultLegSummary": { + "RouteLegSummary": { "description": "Summary object for route section.", "type": "object", "readOnly": true, @@ -1808,14 +1886,10 @@ "readOnly": true }, "departureTime": { - "description": "Departure Time property", - "type": "string", - "readOnly": true + "$ref": "#/definitions/DepartureTime" }, "arrivalTime": { - "description": "Arrival Time property", - "type": "string", - "readOnly": true + "$ref": "#/definitions/ArrivalTime" }, "noTrafficTravelTimeInSeconds": { "description": "Estimated travel time calculated as if there are no delays on the route due to traffic conditions (e.g. congestion). Included only if computeTravelTimeFor = all is used in the query.", @@ -1835,44 +1909,40 @@ "fuelConsumptionInLiters": { "description": "Estimated fuel consumption in liters using the Combustion Consumption Model. Included if vehicleEngineType is set to _combustion_ and constantSpeedConsumptionInLitersPerHundredkm is specified. The value will be non-negative.", "type": "number", - "format": "float", + "format": "double", "readOnly": true }, "batteryConsumptionInkWh": { + "x-ms-client-name": "batteryConsumptionInKwH", "description": "Estimated electric energy consumption in kilowatt hours (kWh) using the Electric Consumption Model. Included if vehicleEngineType is set to electric and constantSpeedConsumptionInkWhPerHundredkm is specified. The value of batteryConsumptionInkWh includes the recuperated electric energy and can therefore be negative (which indicates gaining energy). If both maxChargeInkWh and currentChargeInkWh are specified, recuperation will be capped to ensure that the battery charge level never exceeds maxChargeInkWh. If neither maxChargeInkWh nor currentChargeInkWh are specified, unconstrained recuperation is assumed in the consumption calculation.", "type": "number", - "format": "float", + "format": "double", "readOnly": true } } }, - "RouteResultSection": { + "RouteSection": { + "description": "Route sections contain additional information about parts of a route. Each section contains at least the elements `startPointIndex`, `endPointIndex`, and `sectionType`.", "type": "object", "properties": { "startPointIndex": { - "description": "Start Point Index property", + "description": "Index of the first point (offset 0) in the route this section applies to.", "type": "integer", "readOnly": true }, "endPointIndex": { - "description": "End Point Index property", + "description": "Index of the last point (offset 0) in the route this section applies to.", "type": "integer", "readOnly": true }, "sectionType": { - "description": "Section Type property", - "type": "string", - "readOnly": true + "$ref": "#/definitions/ResponseSectionType" }, "travelMode": { - "description": "Travel Mode property", - "type": "string", - "readOnly": true + "$ref": "#/definitions/ResponseTravelMode" }, "simpleCategory": { - "description": "Type of the incident. Can currently be JAM, ROAD_WORK, ROAD_CLOSURE, or OTHER. See \"tec\" for detailed information.", - "type": "string", - "readOnly": true + "$ref": "#/definitions/SimpleCategory" }, "effectiveSpeedInKmh": { "description": "Effective speed of the incident in km/h, averaged over its entire length.", @@ -1885,49 +1955,15 @@ "readOnly": true }, "magnitudeOfDelay": { - "description": "The magnitude of delay caused by the incident. These values correspond to the values of the response field ty of the [Get Traffic Incident Detail API](https://docs.microsoft.com/rest/api/maps/traffic/gettrafficincidentdetail). ", - "readOnly": true, - "type": "string", - "enum": [ - "0", - "1", - "2", - "3", - "4" - ], - "x-ms-enum": { - "name": "MagnitudeOfDelay", - "modelAsString": true, - "values": [ - { - "value": "0", - "description": "Unknown." - }, - { - "value": "1", - "description": "Minor." - }, - { - "value": "2", - "description": "Moderate." - }, - { - "value": "3", - "description": "Major." - }, - { - "value": "4", - "description": "Undefined, used for road closures and other indefinite delays." - } - ] - } + "x-ms-client-name": "delayMagnitude", + "$ref": "#/definitions/DelayMagnitude" }, "tec": { - "$ref": "#/definitions/RouteResultSectionTec" + "$ref": "#/definitions/RouteSectionTec" } } }, - "RouteResultSectionTec": { + "RouteSectionTec": { "description": "Details of the traffic event, using definitions in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. Can contain effectCode and causes elements.", "type": "object", "properties": { @@ -1940,12 +1976,12 @@ "description": "Causes array", "type": "array", "items": { - "$ref": "#/definitions/RouteResultSectionTecCause" + "$ref": "#/definitions/RouteSectionTecCause" } } } }, - "RouteResultSectionTecCause": { + "RouteSectionTecCause": { "description": "The cause of the traffic event. Can contain mainCauseCode and subCauseCode elements. Can be used to define iconography and descriptions.", "type": "object", "properties": { @@ -1961,7 +1997,7 @@ } } }, - "RouteResultInstruction": { + "RouteInstruction": { "description": "A set of attributes describing a maneuver, e.g. 'Turn right', 'Keep left', 'Take the ferry', 'Take the motorway', 'Arrive'.", "type": "object", "properties": { @@ -2000,26 +2036,32 @@ "values": [ { "value": "TURN", + "name": "Turn", "description": "Turn." }, { "value": "ROAD_CHANGE", + "name": "RoadChange", "description": "Road Change." }, { "value": "LOCATION_DEPARTURE", + "name": "LocationDeparture", "description": "Departure location." }, { "value": "LOCATION_ARRIVAL", + "name": "LocationArrival", "description": "Arrival location." }, { "value": "DIRECTION_INFO", + "name": "DirectionInfo", "description": "Direction information." }, { "value": "LOCATION_WAYPOINT", + "name": "LocationWaypoint", "description": "Way point location." } ] @@ -2088,6 +2130,7 @@ } }, "turnAngleInDecimalDegrees": { + "x-ms-client-name": "turnAngleInDegrees", "description": "Indicates the direction of an instruction. If junctionType indicates a turn instruction:\n\n * 180 = U-turn\n * [-179, -1] = Left turn\n * 0 = Straight on (a '0 degree' turn)\n * [1, 179] = Right turn\n\nIf junctionType indicates a bifurcation instruction:\n\n * <0 - keep left\n * \\>0 - keep right", "type": "integer", "readOnly": true @@ -2170,134 +2213,167 @@ "values": [ { "value": "ARRIVE", + "name": "Arrive", "description": "You have arrived." }, { "value": "ARRIVE_LEFT", + "name": "ArriveLeft", "description": "You have arrived. Your destination is on the left." }, { "value": "ARRIVE_RIGHT", + "name": "ArriveRight", "description": "You have arrived. Your destination is on the right." }, { "value": "DEPART", + "name": "Depart", "description": "Leave." }, { "value": "STRAIGHT", + "name": "Straight", "description": "Keep straight on." }, { "value": "KEEP_RIGHT", + "name": "KeepRight", "description": "Keep right." }, { "value": "BEAR_RIGHT", + "name": "BearRight", "description": "Bear right." }, { "value": "TURN_RIGHT", + "name": "TurnRight", "description": "Turn right." }, { "value": "SHARP_RIGHT", + "name": "SharpRight", "description": "Turn sharp right." }, { "value": "KEEP_LEFT", + "name": "KeepLeft", "description": "Keep left." }, { "value": "BEAR_LEFT", + "name": "BearLeft", "description": "Bear left." }, { "value": "TURN_LEFT", + "name": "TurnLeft", "description": "Turn left." }, { "value": "SHARP_LEFT", + "name": "SharpLeft", "description": "Turn sharp left." }, { "value": "MAKE_UTURN", + "name": "MakeUTurn", "description": "Make a U-turn." }, { "value": "ENTER_MOTORWAY", + "name": "EnterMotorway", "description": "Take the motorway." }, { "value": "ENTER_FREEWAY", + "name": "EnterFreeway", "description": "Take the freeway." }, { "value": "ENTER_HIGHWAY", + "name": "EnterHighway", "description": "Take the highway." }, { "value": "TAKE_EXIT", + "name": "TakeExit", "description": "Take the exit." }, { "value": "MOTORWAY_EXIT_LEFT", + "name": "MotorwayExitLeft", "description": "Take the left exit." }, { "value": "MOTORWAY_EXIT_RIGHT", + "name": "MotorwayExitRight", "description": "Take the right exit." }, { "value": "TAKE_FERRY", + "name": "TakeFerry", "description": "Take the ferry." }, { "value": "ROUNDABOUT_CROSS", + "name": "RoundaboutCross", "description": "Cross the roundabout." }, { "value": "ROUNDABOUT_RIGHT", + "name": "RoundaboutRight", "description": "At the roundabout take the exit on the right." }, { "value": "ROUNDABOUT_LEFT", + "name": "RoundaboutLeft", "description": "At the roundabout take the exit on the left." }, { "value": "ROUNDABOUT_BACK", + "name": "RoundaboutBack", "description": "Go around the roundabout." }, { "value": "TRY_MAKE_UTURN", + "name": "TryMakeUTurn", "description": "Try to make a U-turn." }, { "value": "FOLLOW", + "name": "Follow", "description": "Follow." }, { "value": "SWITCH_PARALLEL_ROAD", + "name": "SwitchParallelRoad", "description": "Switch to the parallel road." }, { "value": "SWITCH_MAIN_ROAD", + "name": "SwitchMainRoad", "description": "Switch to the main road." }, { "value": "ENTRANCE_RAMP", + "name": "EntranceRamp", "description": "Take the ramp." }, { "value": "WAYPOINT_LEFT", + "name": "WaypointLeft", "description": "You have reached the waypoint. It is on the left." }, { "value": "WAYPOINT_RIGHT", + "name": "WaypointRight", "description": "You have reached the waypoint. It is on the right." }, { "value": "WAYPOINT_REACHED", + "name": "WaypointReached", "description": "You have reached the waypoint." } ] @@ -2315,17 +2391,17 @@ } } }, - "RouteResultInstructionGroup": { + "RouteInstructionGroup": { "description": "Groups a sequence of instruction elements which are related to each other. The sequence range is constrained with firstInstructionIndex and lastInstructionIndex. When human-readable text messages are requested for guidance (instructionType=text or tagged), then the instructionGroup has a summary message returned when available.", "type": "object", "properties": { "firstInstructionIndex": { - "description": "Index of the first instruction.", + "description": "Index of the first instruction in the instructions and belonging to this group.", "type": "integer", "readOnly": true }, "lastInstructionIndex": { - "description": "Index of the last instruction.", + "description": "Index of the last instruction in the instructions and belonging to this group.", "type": "integer", "readOnly": true }, @@ -2341,7 +2417,7 @@ } } }, - "RouteResultGuidance": { + "RouteGuidance": { "description": "Contains guidance related elements. This field is present only when guidance was requested and is available.", "type": "object", "readOnly": true, @@ -2351,7 +2427,7 @@ "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/RouteResultInstruction" + "$ref": "#/definitions/RouteInstruction" } }, "instructionGroups": { @@ -2359,12 +2435,12 @@ "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/RouteResultInstructionGroup" + "$ref": "#/definitions/RouteInstructionGroup" } } } }, - "GetRouteRangeResponse": { + "RouteRangeResponse": { "description": "This object is returned from a successful Route Reachable Range call", "type": "object", "properties": { @@ -2377,7 +2453,7 @@ "$ref": "#/definitions/RouteRange" }, "report": { - "$ref": "#/definitions/RouteResponseReport" + "$ref": "#/definitions/RouteReport" } } }, @@ -2399,7 +2475,7 @@ } } }, - "RouteResponseReport": { + "RouteReport": { "description": "Reports the effective settings used in the current call.", "type": "object", "properties": { @@ -2408,12 +2484,12 @@ "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/RouteResponseReportEffectiveSetting" + "$ref": "#/definitions/EffectiveSetting" } } } }, - "RouteResponseReportEffectiveSetting": { + "EffectiveSetting": { "description": "Effective parameter or data used when calling this Route API.", "type": "object", "properties": { @@ -2493,11 +2569,12 @@ "readOnly": true, "properties": { "routeSummary": { - "$ref": "#/definitions/RouteResultLegSummary" + "x-ms-client-name": "summary", + "$ref": "#/definitions/RouteLegSummary" } } }, - "PostRouteMatrixRequestBody": { + "RouteMatrixQuery": { "description": "An object with a matrix of coordinates.", "type": "object", "properties": { @@ -2538,12 +2615,12 @@ ], "properties": { "response": { - "description": "The result of the query. RouteDirectionsResponse if the query completed successfully, ErrorResponse otherwise.", + "description": "The result of the query. RouteDirections if the query completed successfully, ErrorResponse otherwise.", "type": "object", "readOnly": true, "allOf": [ { - "$ref": "#/definitions/RouteDirectionsResponse" + "$ref": "#/definitions/RouteDirections" }, { "$ref": "../../../../../common-types/data-plane/v1/types.json#/definitions/ErrorResponse" @@ -2551,6 +2628,241 @@ ] } } + }, + "DepartureTime": { + "description": "The estimated departure time for the route or leg.", + "type": "string", + "readOnly": true, + "format": "date-time" + }, + "ArrivalTime": { + "description": "The estimated arrival time for the route or leg.", + "type": "string", + "readOnly": true, + "format": "date-time" + }, + "ResponseSectionType": { + "description": "Section types of the reported route response", + "type": "string", + "readOnly": true, + "enum": [ + "CAR_TRAIN", + "COUNTRY", + "FERRY", + "MOTORWAY", + "PEDESTRIAN", + "TOLL_ROAD", + "TOLL_VIGNETTE", + "TRAFFIC", + "TRAVEL_MODE", + "TUNNEL", + "CARPOOL", + "URBAN" + ], + "x-ms-enum": { + "name": "ResponseSectionType", + "modelAsString": true, + "values": [ + { + "value": "CAR_TRAIN", + "name": "CarOrTrain", + "description": "Sections of the route that are cars or trains." + }, + { + "value": "COUNTRY", + "name": "Country", + "description": "Sections indicating which countries the route is in." + }, + { + "value": "FERRY", + "name": "Ferry", + "description": "Sections of the route that are ferries." + }, + { + "value": "MOTORWAY", + "name": "Motorway", + "description": "Sections of the route that are motorways." + }, + { + "value": "PEDESTRIAN", + "name": "Pedestrian", + "description": "Sections of the route that are only suited for pedestrians." + }, + { + "value": "TOLL_ROAD", + "name": "TollRoad", + "description": "Sections of the route that require a toll to be payed." + }, + { + "value": "TOLL_VIGNETTE", + "name": "TollVignette", + "description": "Sections of the route that require a toll vignette to be present." + }, + { + "value": "TRAFFIC", + "name": "Traffic", + "description": "Sections of the route that contain traffic information." + }, + { + "value": "TRAVEL_MODE", + "name": "TravelMode", + "description": "Sections in relation to the request parameter `travelMode`." + }, + { + "value": "TUNNEL", + "name": "Tunnel", + "description": "Sections of the route that are tunnels." + }, + { + "value": "CARPOOL", + "name": "Carpool", + "description": "Sections of the route that require use of carpool (HOV/High Occupancy Vehicle) lanes." + }, + { + "value": "URBAN", + "name": "Urban", + "description": "Sections of the route that are located within urban areas." + } + ] + } + }, + "ResponseTravelMode": { + "description": "Travel mode for the calculated route. The value will be set to `other` if the requested mode of transport is not possible in this section", + "type": "string", + "readOnly": true, + "enum": [ + "car", + "truck", + "taxi", + "bus", + "van", + "motorcycle", + "bicycle", + "pedestrian", + "other" + ], + "x-ms-enum": { + "name": "ResponseTravelMode", + "modelAsString": true, + "values": [ + { + "value": "car", + "description": "The returned routes are optimized for cars." + }, + { + "value": "truck", + "description": "The returned routes are optimized for commercial vehicles, like for trucks." + }, + { + "value": "taxi", + "description": "The returned routes are optimized for taxis. BETA functionality." + }, + { + "value": "bus", + "description": "The returned routes are optimized for buses, including the use of bus only lanes. BETA functionality." + }, + { + "value": "van", + "description": "The returned routes are optimized for vans. BETA functionality." + }, + { + "value": "motorcycle", + "description": "The returned routes are optimized for motorcycles. BETA functionality." + }, + { + "value": "bicycle", + "description": "The returned routes are optimized for bicycles, including use of bicycle lanes." + }, + { + "value": "pedestrian", + "description": "The returned routes are optimized for pedestrians, including the use of sidewalks." + }, + { + "value": "other", + "description": "The given mode of transport is not possible in this section" + } + ] + } + }, + "SimpleCategory": { + "description": "Type of the incident. Can currently be JAM, ROAD_WORK, ROAD_CLOSURE, or OTHER. See \"tec\" for detailed information.", + "type": "string", + "readOnly": true, + "enum": [ + "JAM", + "ROAD_WORK", + "ROAD_CLOSURE", + "OTHER" + ], + "x-ms-enum": { + "name": "SimpleCategory", + "modelAsString": true, + "values": [ + { + "value": "JAM", + "name": "Jam", + "description": "Traffic jam." + }, + { + "value": "ROAD_WORK", + "name": "RoadWork", + "description": "Road work." + }, + { + "value": "ROAD_CLOSURE", + "name": "RoadClosure", + "description": "Road closure." + }, + { + "value": "OTHER", + "name": "Other", + "description": "Other." + } + ] + } + }, + "DelayMagnitude": { + "description": "The magnitude of delay caused by the incident. These values correspond to the values of the response field ty of the [Get Traffic Incident Detail API](https://docs.microsoft.com/rest/api/maps/traffic/gettrafficincidentdetail). ", + "readOnly": true, + "type": "string", + "enum": [ + "0", + "1", + "2", + "3", + "4" + ], + "x-ms-enum": { + "name": "DelayMagnitude", + "modelAsString": true, + "values": [ + { + "value": "0", + "name": "Unknown", + "description": "Unknown." + }, + { + "value": "1", + "name": "Minor", + "description": "Minor." + }, + { + "value": "2", + "name": "Moderate", + "description": "Moderate." + }, + { + "value": "3", + "name": "Major", + "description": "Major." + }, + { + "value": "4", + "name": "Undefined", + "description": "Undefined, used for road closures and other indefinite delays." + } + ] + } } } } diff --git a/specification/maps/data-plane/Route/readme.typescript.md b/specification/maps/data-plane/Route/readme.typescript.md index 3239505647af..416e5df64989 100644 --- a/specification/maps/data-plane/Route/readme.typescript.md +++ b/specification/maps/data-plane/Route/readme.typescript.md @@ -13,15 +13,11 @@ clear-output-folder: false generate-metadata: false directive: - from: route.json - where: $.definitions.PostRouteDirectionsRequestBody.properties.supportingPoints + where: $.definitions.RouteDirectionParameters.properties.supportingPoints transform: > $ = { "description": "A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.\n - The provided sequence of supporting points is used as input for route reconstruction.\n - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.\n - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are\n expected to be at (or very near) the beginning and end of the reference route, respectively.\n - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.\n - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are\n ignored for the calculation of the reference route's travel time and traffic delay.", "type": "object" }; reason: Autorest TS codegen does not deserialize array of base class objects as an operation parameter properly -> https://github.com/Azure/autorest.typescript/issues/1040 - - remove-operation: Route_GetRouteMatrix - reason: This operation is created for Java SDK that has no LRO poller implementation - - remove-operation: Route_GetRouteDirectionsBatch - reason: This operation is created for Java SDK that has no LRO poller implementation ```