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 1a70746513cd..f91f88f9b5b6 100644
--- a/specification/maps/data-plane/Common/preview/1.0/common.json
+++ b/specification/maps/data-plane/Common/preview/1.0/common.json
@@ -4,18 +4,6 @@
"title": "Azure Maps Common Types",
"version": "1.0"
},
- "x-ms-parameterized-host": {
- "hostTemplate": "{geography}.atlas.microsoft.com",
- "parameters": [
- {
- "$ref": "#/parameters/GeographicResourceLocation"
- }
- ]
- },
- "schemes": [
- "https"
- ],
- "consumes": [],
"produces": [
"application/json"
],
@@ -203,7 +191,7 @@
],
"x-ms-enum": {
"name": "GeoJsonObjectType",
- "modelAsString": true,
+ "modelAsString": false,
"values": [
{
"value": "Point",
@@ -535,6 +523,7 @@
"parameters": {
"ClientId": {
"name": "x-ms-client-id",
+ "x-ms-client-name": "clientId",
"description": "Specifies which account is intended for usage in conjunction with the Azure AD security model. It represents a unique ID for the Azure Maps account and can be retrieved from the Azure Maps management plane Account API. To use Azure AD security in Azure Maps see the following [articles](https://aka.ms/amauthdetails) for guidance.",
"type": "string",
"in": "header",
@@ -547,7 +536,7 @@
"type": "string",
"x-ms-parameter-location": "method"
},
- "ResponseFormat": {
+ "JsonFormat": {
"name": "format",
"description": "Desired format of the response. Only `json` format is supported.",
"type": "string",
@@ -557,7 +546,7 @@
"json"
],
"x-ms-enum": {
- "name": "ResponseFormat",
+ "name": "JsonFormat",
"modelAsString": true,
"values": [
{
@@ -566,9 +555,10 @@
}
]
},
+ "x-ms-client-default": "json",
"x-ms-parameter-location": "method"
},
- "TextFormat": {
+ "ResponseFormat": {
"name": "format",
"description": "Desired format of the response. Value can be either _json_ or _xml_.",
"type": "string",
@@ -579,7 +569,7 @@
"xml"
],
"x-ms-enum": {
- "name": "TextFormat",
+ "name": "ResponseFormat",
"modelAsString": true,
"values": [
{
@@ -592,6 +582,7 @@
}
]
},
+ "x-ms-client-default": "json",
"x-ms-parameter-location": "method"
},
"GeographicResourceLocation": {
diff --git a/specification/maps/data-plane/Creator/preview/1.0/spatial.json b/specification/maps/data-plane/Creator/preview/1.0/spatial.json
index 7e0af17046ac..84aac9f7e193 100644
--- a/specification/maps/data-plane/Creator/preview/1.0/spatial.json
+++ b/specification/maps/data-plane/Creator/preview/1.0/spatial.json
@@ -49,7 +49,7 @@
],
"responses": {},
"parameters": {
- "SpatialApiVersion": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -176,10 +176,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SpatialApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "deviceId",
@@ -263,10 +263,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SpatialApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "deviceId",
@@ -348,10 +348,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SpatialApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "bufferRequestBody",
@@ -388,10 +388,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SpatialApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"$ref": "#/parameters/SpatialUploadUdid"
@@ -431,10 +431,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SpatialApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"$ref": "#/parameters/SpatialLatitude"
@@ -477,10 +477,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SpatialApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"$ref": "#/parameters/SpatialUploadUdid"
@@ -525,10 +525,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SpatialApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"$ref": "#/parameters/SpatialLatitude"
@@ -565,10 +565,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SpatialApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"$ref": "#/parameters/SpatialUploadUdid"
@@ -607,10 +607,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SpatialApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "query",
diff --git a/specification/maps/data-plane/Creator/preview/2.0/alias.json b/specification/maps/data-plane/Creator/preview/2.0/alias.json
index da39661e0fac..4f780ebd4c4c 100644
--- a/specification/maps/data-plane/Creator/preview/2.0/alias.json
+++ b/specification/maps/data-plane/Creator/preview/2.0/alias.json
@@ -49,7 +49,7 @@
],
"responses": {},
"parameters": {
- "AliasApiVersionV2": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -97,7 +97,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/AliasApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/CreateCreatorDataItemId"
@@ -134,7 +134,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/AliasApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
}
],
"x-ms-pageable": {
@@ -171,7 +171,7 @@
"$ref": "#/parameters/AliasId"
},
{
- "$ref": "#/parameters/AliasApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/AssignCreatorDataItemId"
@@ -205,7 +205,7 @@
"$ref": "#/parameters/AliasId"
},
{
- "$ref": "#/parameters/AliasApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
}
],
"responses": {
@@ -233,7 +233,7 @@
"$ref": "#/parameters/AliasId"
},
{
- "$ref": "#/parameters/AliasApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
}
],
"responses": {
diff --git a/specification/maps/data-plane/Creator/preview/2.0/data.json b/specification/maps/data-plane/Creator/preview/2.0/data.json
index d796da13457e..7e56d1ee4ab8 100644
--- a/specification/maps/data-plane/Creator/preview/2.0/data.json
+++ b/specification/maps/data-plane/Creator/preview/2.0/data.json
@@ -49,7 +49,7 @@
],
"responses": {},
"parameters": {
- "DataApiVersionV2": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -139,7 +139,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/DataApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/UploadDataDescription"
@@ -185,7 +185,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/DataApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
}
],
"responses": {
@@ -219,7 +219,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/DataApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/UniqueDataId"
@@ -270,7 +270,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/DataApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/UniqueDataId"
@@ -307,7 +307,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/DataApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/UniqueDataId"
@@ -337,7 +337,7 @@
},
"parameters": [
{
- "$ref": "#/parameters/DataApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/DataUploadOperationId"
diff --git a/specification/maps/data-plane/Creator/preview/2.0/dataset.json b/specification/maps/data-plane/Creator/preview/2.0/dataset.json
index 42543beaca90..49360cdd2775 100644
--- a/specification/maps/data-plane/Creator/preview/2.0/dataset.json
+++ b/specification/maps/data-plane/Creator/preview/2.0/dataset.json
@@ -49,7 +49,7 @@
],
"responses": {},
"parameters": {
- "DatasetApiVersionV2": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -117,7 +117,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/DatasetApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/ConversionIdQuery"
@@ -154,7 +154,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/DatasetApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
}
],
"x-ms-pageable": {
@@ -191,7 +191,7 @@
"$ref": "#/parameters/DatasetId"
},
{
- "$ref": "#/parameters/DatasetApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
}
],
"responses": {
@@ -219,7 +219,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/DatasetApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/DatasetId"
@@ -252,7 +252,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/DatasetApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/DatasetOperationId"
diff --git a/specification/maps/data-plane/Creator/preview/2.0/dwgconversion.json b/specification/maps/data-plane/Creator/preview/2.0/dwgconversion.json
index 1ec7f1f20fa2..cec49312d4bb 100644
--- a/specification/maps/data-plane/Creator/preview/2.0/dwgconversion.json
+++ b/specification/maps/data-plane/Creator/preview/2.0/dwgconversion.json
@@ -49,7 +49,7 @@
],
"responses": {},
"parameters": {
- "ConversionApiVersionV2": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -117,7 +117,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/ConversionApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/UdidQuery"
@@ -154,7 +154,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/ConversionApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
}
],
"x-ms-pageable": {
@@ -188,7 +188,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/ConversionApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/ConversionId"
@@ -219,7 +219,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/ConversionApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/ConversionId"
@@ -249,7 +249,7 @@
},
"parameters": [
{
- "$ref": "#/parameters/ConversionApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/ConversionOperationId"
diff --git a/specification/maps/data-plane/Creator/preview/2.0/featurestate.json b/specification/maps/data-plane/Creator/preview/2.0/featurestate.json
index 9b3da335d313..cc8fafcd0f60 100644
--- a/specification/maps/data-plane/Creator/preview/2.0/featurestate.json
+++ b/specification/maps/data-plane/Creator/preview/2.0/featurestate.json
@@ -49,7 +49,7 @@
],
"responses": {},
"parameters": {
- "FeaturestateApiVersionV2": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -130,7 +130,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/FeaturestateApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/DatasetIdForCreate"
@@ -173,7 +173,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/FeaturestateApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
}
],
"x-ms-pageable": {
@@ -207,7 +207,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/FeaturestateApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/StatesetIdInPath"
@@ -244,7 +244,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/FeaturestateApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/StatesetIdInPath"
@@ -272,7 +272,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/FeaturestateApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/StatesetIdInPath"
@@ -305,7 +305,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/FeaturestateApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/StatesetIdInPath"
@@ -345,7 +345,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/FeaturestateApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/StatesetIdInPath"
@@ -379,7 +379,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/FeaturestateApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/StatesetIdInPath"
diff --git a/specification/maps/data-plane/Creator/preview/2.0/tileset.json b/specification/maps/data-plane/Creator/preview/2.0/tileset.json
index f177ba628d21..a6d5d1fdb6d4 100644
--- a/specification/maps/data-plane/Creator/preview/2.0/tileset.json
+++ b/specification/maps/data-plane/Creator/preview/2.0/tileset.json
@@ -49,7 +49,7 @@
],
"responses": {},
"parameters": {
- "TilesetApiVersionV2": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -109,7 +109,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/TilesetApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/DatasetIdQuery"
@@ -143,7 +143,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/TilesetApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
}
],
"x-ms-pageable": {
@@ -177,7 +177,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/TilesetApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/TilesetId"
@@ -208,7 +208,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/TilesetApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/TilesetId"
@@ -238,7 +238,7 @@
},
"parameters": [
{
- "$ref": "#/parameters/TilesetApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/TilesetOperationId"
diff --git a/specification/maps/data-plane/Creator/preview/2.0/wfs.json b/specification/maps/data-plane/Creator/preview/2.0/wfs.json
index 29233371588c..7759489089de 100644
--- a/specification/maps/data-plane/Creator/preview/2.0/wfs.json
+++ b/specification/maps/data-plane/Creator/preview/2.0/wfs.json
@@ -49,7 +49,7 @@
],
"responses": {},
"parameters": {
- "WFSApiVersionV2": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -113,7 +113,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/WFSApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "dataset.json#/parameters/DatasetId"
@@ -146,7 +146,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/WFSApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "dataset.json#/parameters/DatasetId"
@@ -179,7 +179,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/WFSApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "dataset.json#/parameters/DatasetId"
@@ -212,7 +212,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/WFSApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "dataset.json#/parameters/DatasetId"
@@ -248,7 +248,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/WFSApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "dataset.json#/parameters/DatasetId"
@@ -284,7 +284,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/WFSApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "dataset.json#/parameters/DatasetId"
@@ -326,7 +326,7 @@
},
"parameters": [
{
- "$ref": "#/parameters/WFSApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "dataset.json#/parameters/DatasetId"
@@ -360,7 +360,7 @@
},
"parameters": [
{
- "$ref": "#/parameters/WFSApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "dataset.json#/parameters/DatasetId"
diff --git a/specification/maps/data-plane/DEM/preview/1.0/elevation.json b/specification/maps/data-plane/DEM/preview/1.0/elevation.json
index dda238d1a4b2..34562e06e61c 100644
--- a/specification/maps/data-plane/DEM/preview/1.0/elevation.json
+++ b/specification/maps/data-plane/DEM/preview/1.0/elevation.json
@@ -42,7 +42,7 @@
],
"responses": {},
"parameters": {
- "ElevationApiVersion": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -57,7 +57,7 @@
"get": {
"summary": "Get Elevation Data on One or More Points",
"description": "**Applies to**: S1 pricing tier.\n\nThe Get Data for Points API provides elevation data for one or more points. A point is defined in lat,long coordinate format.\n\n Due to the URL character length limit of 2048, it's not possible to pass more than 100 coordinates as a pipeline delimited string in a URL GET request. If you intend to pass more than 100 coordinates as a pipeline delimited string, use the [POST Data\n For Points](https://docs.microsoft.com/en-us/rest/api/maps/elevation/postdataforpoints).",
- "operationId": "Elevation_GetDataForPoints",
+ "operationId": "GetDataForPoints",
"x-ms-examples": {
"GetDataForPoints": {
"$ref": "./examples/GetDataForPoints.json"
@@ -68,10 +68,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/ElevationApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "points",
@@ -102,7 +102,7 @@
"post": {
"summary": "Query Elevation Data for Multiple Points",
"description": "**Applies to**: S1 pricing tier.\n\nThe Post Data for Points API provides elevation data for multiple points. A point is defined lon/lat coordinate format. Use the POST endpoint only if you intend to pass multiple points in the request. If you intend to pass a single coordinate into the API, use the [GET Data For Points API](https://docs.microsoft.com/en-us/rest/api/maps/elevation/getdataforpoints).",
- "operationId": "Elevation_PostDataForPoints",
+ "operationId": "PostDataForPoints",
"x-ms-examples": {
"PostDataForPoints": {
"$ref": "./examples/PostDataForPoints.json"
@@ -113,10 +113,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/ElevationApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "pointsRequestBody",
@@ -145,7 +145,7 @@
"get": {
"summary": "Get Elevation Data Along a Polyline",
"description": "**Applies to**: S1 pricing tier.\n\nThe Get Data for Polyline API provides elevation data along a polyline.\n\n A polyline is defined by passing in between 2 and N endpoint coordinates separated by a pipe ('|') character. In addition to passing in endpoints, customers can specify the number of sample points that will be used to divide polyline into equally spaced segments. Elevation data at both start and endpoints and equally spaced points along the polyline will be returned.\n\n A line between two endpoints is a straight Cartesian line, the shortest line between those two points in the coordinate reference system. Note that the point is chosen based on Euclidean distance and may markedly differ from the geodesic path along the curved surface of the reference ellipsoid.",
- "operationId": "Elevation_GetDataForPolyline",
+ "operationId": "GetDataForPolyline",
"x-ms-examples": {
"GetDataForPolyLine": {
"$ref": "./examples/GetDataForPolyline.json"
@@ -156,10 +156,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/ElevationApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "lines",
@@ -198,7 +198,7 @@
"post": {
"summary": "Query Elevation Data Along a Polyline",
"description": "**Applies to**: S1 pricing tier.\n\n The Post Data for Polyline API provides elevation data along a polyline. A polyline is defined by passing in between 2 and N endpoint coordinates separated by a pipe ('|') character. In addition to passing in endpoints, customers can specify the number of sample points that will be used to divide polyline into equally spaced segments.\n\n Elevation data at both start and end points and equally spaced points along the polyline will be returned. A line between two endpoints is a straight Cartesian line, the shortest line between those two points in the coordinate reference system. Note that the point is chosen based on Euclidean distance and may markedly differ from the geodesic path along the curved surface of the reference ellipsoid.",
- "operationId": "Elevation_PostDataForPolyline",
+ "operationId": "PostDataForPolyline",
"x-ms-examples": {
"PostDataForPolyLine": {
"$ref": "./examples/PostDataForPolyline.json"
@@ -209,10 +209,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/ElevationApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "linesRequestBody",
@@ -249,7 +249,7 @@
"get": {
"summary": "Get Elevation Data at Equally Spaced Locations Within a Bounding Box",
"description": "**Applies to**: S1 pricing tier.\n\nThe Get Data for Bounding Box API provides elevation data at equally spaced locations within a bounding box. A bounding box is defined by the coordinates for two corners (southwest, northeast) and then subsequently divided into rows and columns.\n\n Elevations are returned for the vertices of the grid created by the rows and columns. Up to 2,000 elevations can be returned in a single request. The returned elevation values are ordered, starting at the southwest corner, and then proceeding west to east along the row. At the end of the row, it moves north to the next row, and repeats the process until it reaches the far northeast corner.",
- "operationId": "Elevation_GetDataForBoundingBox",
+ "operationId": "GetDataForBoundingBox",
"x-ms-examples": {
"GetDataForBoundingBox": {
"$ref": "./examples/GetDataForBoundingBox.json"
@@ -260,10 +260,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/ElevationApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "bounds",
diff --git a/specification/maps/data-plane/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json b/specification/maps/data-plane/Geolocation/preview/1.0/examples/SuccessfulGetCountryCodeFromIP.json
similarity index 100%
rename from specification/maps/data-plane/Geolocation/preview/1.0/examples/GetLocationByIpAddress.json
rename to specification/maps/data-plane/Geolocation/preview/1.0/examples/SuccessfulGetCountryCodeFromIP.json
diff --git a/specification/maps/data-plane/Geolocation/preview/1.0/geolocation.json b/specification/maps/data-plane/Geolocation/preview/1.0/geolocation.json
index f720dc558021..80075541a4dc 100644
--- a/specification/maps/data-plane/Geolocation/preview/1.0/geolocation.json
+++ b/specification/maps/data-plane/Geolocation/preview/1.0/geolocation.json
@@ -42,7 +42,7 @@
],
"responses": {},
"parameters": {
- "GeolocationApiVersion": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -56,10 +56,10 @@
"/geolocation/ip/{format}": {
"get": {
"description": "\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThis service will return the ISO country code for the provided IP address. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from. \n\n\n__Note:__ This service returns results from IANA and does not necessarily reflect the views of Microsoft Corporation.",
- "operationId": "Geolocation_GetIPToLocationPreview",
+ "operationId": "GetLocation",
"x-ms-examples": {
- "GetLocationByIpAddress": {
- "$ref": "./examples/GetLocationByIpAddress.json"
+ "Successfully retrieve country code from IP address": {
+ "$ref": "./examples/SuccessfulGetCountryCodeFromIP.json"
}
},
"parameters": [
@@ -67,13 +67,14 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/GeolocationApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "ip",
+ "x-ms-client-name": "ipAddress",
"in": "query",
"description": "The IP address. Both IPv4 and IPv6 are allowed.",
"required": true,
diff --git a/specification/maps/data-plane/Render/preview/1.0/render.json b/specification/maps/data-plane/Render/preview/1.0/render.json
index 14e994ea71a6..22f2fcf88e30 100644
--- a/specification/maps/data-plane/Render/preview/1.0/render.json
+++ b/specification/maps/data-plane/Render/preview/1.0/render.json
@@ -42,7 +42,7 @@
],
"responses": {},
"parameters": {
- "RenderApiVersion": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -164,7 +164,7 @@
"/map/static/{format}": {
"get": {
"description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nThe static image service renders a user-defined, rectangular image containing a map section using a zoom level from 0 to 20. The static image service renders a user-defined, rectangular image containing a map section using a zoom level from 0 to 20. The supported resolution range for the map image is from 1x1 to 8192x8192. If you are deciding when to use the static image service over the map tile service, you may want to consider how you would like to interact with the rendered map. If the map contents will be relatively unchanging, a static map is a good choice. If you want to support a lot of zooming, panning and changing of the map content, the map tile service would be a better choice. \n\nService also provides Image Composition functionality to get a static image back with additional data like; pushpins and geometry overlays with following S0 and S1 capabilities. \n\nIn S0 you can:\n- Render up to 5 pushpins specified in the request\n- Provide one custom image for the pins referenced in the request\n- Add labels to the pushpins\n\nIn S1 you can:\n- Render pushpins through [Azure Maps Data Service](https://aka.ms/AzureMapsMapDataService)\n- Specify multiple pushpin styles\n- Render circle, polyline and polygon geometry types.\n- Render of supported GeoJSON geometry types uploaded through [Azure Maps Data Service](https://aka.ms/AzureMapsMapDataService)\n\nPlease see [How-to-Guide](https://aka.ms/AzureMapsHowToGuideImageCompositor) for detailed examples.\n\n_Note_ : Either **center** or **bbox** parameter must be supplied to the\nAPI.\n
\nThe supported Lat and Lon ranges when using the **bbox** parameter, are as follows:\n
\n\n |Zoom Level | Max Lon Range | Max Lat Range|\n |:----------|:----------------|:-------------|\n |0 | 360.0 | 170.0 | \n |1 | 360.0 | 170.0 |\n |2 | 360.0 | 170.0 |\n |3 | 360.0 | 170.0 |\n |4 | 360.0 | 170.0 |\n |5 | 180.0 | 85.0 |\n |6 | 90.0 | 42.5 |\n |7 | 45.0 | 21.25 |\n |8 | 22.5 | 10.625 |\n |9 | 11.25 | 5.3125 |\n |10 | 5.625 | 2.62625 |\n |11 | 2.8125 | 1.328125 |\n |12 | 1.40625 | 0.6640625 |\n |13 | 0.703125 | 0.33203125 |\n |14 | 0.3515625 | 0.166015625 |\n |15 | 0.17578125 | 0.0830078125 | \n |16 | 0.087890625 | 0.0415039063 | \n |17 | 0.0439453125 | 0.0207519531 |\n |18 | 0.0219726563 | 0.0103759766 |\n |19 | 0.0109863281 | 0.0051879883 |\n |20 | 0.0054931641 | 0.0025939941 |",
- "operationId": "Render_GetMapStaticImage",
+ "operationId": "GetMapStaticImage",
"x-ms-examples": {
"GetMapStaticImage": {
"$ref": "./examples/GetMapStaticImage.json"
@@ -175,7 +175,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RenderApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/RasterTileFormat"
@@ -330,7 +330,7 @@
"/map/tile/{format}": {
"get": {
"description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nFetches map tiles in vector or raster format typically to be integrated into a new map control or SDK. By default, Azure uses vector map tiles for its web map control (see [Zoom Levels and Tile Grid](https://docs.microsoft.com/en-us/azure/location-based-services/zoom-levels-and-tile-grid))\n\n**Note**: Weather tiles are only available via [Get Map Tile V2 API](https://aka.ms/AzureMapsWeatherTiles). We recommend to start to use the new [Get Map Tile V2 API](https://aka.ms/GetMapTileV2).",
- "operationId": "Render_GetMapTile",
+ "operationId": "GetMapTile",
"x-ms-examples": {
"GetMapTile": {
"$ref": "./examples/GetMapTile.json"
@@ -341,7 +341,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RenderApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/TileFormat"
@@ -482,7 +482,7 @@
"/map/statetile": {
"get": {
"description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nFetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling (see [Zoom Levels and Tile Grid](https://docs.microsoft.com/en-us/azure/location-based-services/zoom-levels-and-tile-grid))",
- "operationId": "Render_GetMapStateTilePreview",
+ "operationId": "GetMapStateTile",
"x-ms-examples": {
"GetMapStateTile": {
"$ref": "./examples/GetMapStateTile.json"
@@ -493,7 +493,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RenderApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/VectorZoom"
@@ -540,7 +540,7 @@
"/map/copyright/caption/{format}": {
"get": {
"description": "**Applies to**: S0 and S1 pricing tiers.\n\n\n\nCopyrights API is designed to serve copyright information for Render Tile \nservice. In addition to basic copyright for the whole map, API is serving \nspecific groups of copyrights for some countries.\n\nAs an alternative to copyrights for map request, one can receive captions\nfor displaying the map provider information on the map.",
- "operationId": "Render_GetCopyrightCaption",
+ "operationId": "GetCopyrightCaption",
"x-ms-examples": {
"GetCopyrightCaption": {
"$ref": "./examples/GetCopyrightCaption.json"
@@ -551,10 +551,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RenderApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
}
],
"responses": {
@@ -573,7 +573,7 @@
"/map/imagery/{format}": {
"get": {
"description": "**Applies to:** S1 pricing tier.\n\n\nThis service returns a map image tile with size 256x256, given the x and y coordinates and zoom\nlevel. Zoom level ranges from 1 to 19. The current available style value is 'satellite' which provides satellite\nimagery alone.\n\n\n**Note**: We recommend to start to use the new [Get Map Tile V2 API](https://aka.ms/GetMapTileV2).",
- "operationId": "Render_GetMapImageryTile",
+ "operationId": "GetMapImageryTile",
"x-ms-examples": {
"GetMapImageryTile": {
"$ref": "./examples/GetMapImageryTile.json"
@@ -584,7 +584,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RenderApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/RasterTileFormat"
@@ -648,7 +648,7 @@
"/map/copyright/bounding/{format}": {
"get": {
"description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nReturns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates",
- "operationId": "Render_GetCopyrightFromBoundingBox",
+ "operationId": "GetCopyrightFromBoundingBox",
"x-ms-examples": {
"GetCopyrightFromBoundingBox": {
"$ref": "./examples/GetCopyrightFromBoundingBox.json"
@@ -659,10 +659,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RenderApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"name": "mincoordinates",
@@ -698,7 +698,7 @@
"/map/copyright/tile/{format}": {
"get": {
"description": "**Applies to**: S0 and S1 pricing tiers.\n\n\n\nCopyrights API is designed to serve copyright information for Render Tile service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries.\nReturns the copyright information for a given tile. To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates (see: Zoom Levels and Tile Grid).",
- "operationId": "Render_GetCopyrightForTile",
+ "operationId": "GetCopyrightForTile",
"x-ms-examples": {
"GetCopyrightForTile": {
"$ref": "./examples/GetCopyrightForTile.json"
@@ -709,10 +709,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RenderApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"$ref": "#/parameters/RasterZoom18"
@@ -743,7 +743,7 @@
"/map/copyright/world/{format}": {
"get": {
"description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nCopyrights API is designed to serve copyright information for Render Tile service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries.\nReturns the copyright information for the world. To obtain the default copyright information for the whole world, do not specify a tile or bounding box.",
- "operationId": "Render_GetCopyrightForWorld",
+ "operationId": "GetCopyrightForWorld",
"x-ms-examples": {
"GetCopyrightForWorld": {
"$ref": "./examples/GetCopyrightForWorld.json"
@@ -754,10 +754,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RenderApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"$ref": "#/parameters/IncludeText"
diff --git a/specification/maps/data-plane/Render/preview/2.0/render.json b/specification/maps/data-plane/Render/preview/2.0/render.json
index 6759fadf6526..0435165eea1b 100644
--- a/specification/maps/data-plane/Render/preview/2.0/render.json
+++ b/specification/maps/data-plane/Render/preview/2.0/render.json
@@ -42,7 +42,7 @@
],
"responses": {},
"parameters": {
- "RenderApiVersionV2": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -146,7 +146,7 @@
"/map/tile": {
"get": {
"description": "**Applies to**: S0 and S1 pricing tiers.\n\nThe Get Map Tiles API allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control (Web SDK) and Android SDK.",
- "operationId": "RenderV2_GetMapTilePreview",
+ "operationId": "GetMapTileV2",
"x-ms-examples": {
"GetMapTile": {
"$ref": "./examples/GetMapTileV2.json"
@@ -157,7 +157,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RenderApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/TilesetId_rv2"
diff --git a/specification/maps/data-plane/Render/preview/2.1/render.json b/specification/maps/data-plane/Render/preview/2.1/render.json
index 075aaddc7e3a..4ba3549001c9 100644
--- a/specification/maps/data-plane/Render/preview/2.1/render.json
+++ b/specification/maps/data-plane/Render/preview/2.1/render.json
@@ -42,7 +42,7 @@
],
"responses": {},
"parameters": {
- "RenderApiVersionV2": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API. Current version is 2.1",
"type": "string",
@@ -56,7 +56,7 @@
"/map/tile": {
"get": {
"description": "**Applies to**: S0 and S1 pricing tiers.\n\nThe Get Map Tiles API allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control (Web SDK) and Android SDK.",
- "operationId": "RenderV2_GetMapTilePreview",
+ "operationId": "GetMapTileV2",
"x-ms-examples": {
"GetMapTile": {
"$ref": "./examples/GetMapTileV2.json"
@@ -67,7 +67,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RenderApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "../2.0/render.json#/parameters/TilesetId_rv2"
@@ -150,7 +150,7 @@
"/map/tileset": {
"get": {
"description": "**Applies to**: S0 and S1 pricing tiers.\n\nThe Get Map Tileset API allows users to request metadata for a tileset.",
- "operationId": "RenderV2_GetMapTileset",
+ "operationId": "GetMapTileset",
"x-ms-examples": {
"GetMapTileset": {
"$ref": "./examples/GetMapTilesetV2.json"
@@ -161,7 +161,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RenderApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "../2.0/render.json#/parameters/TilesetId_rv2"
@@ -186,7 +186,7 @@
"/map/attribution": {
"get": {
"description": "**Applies to**: S0 and S1 pricing tiers.\n\nThe Get Map Attribution API allows users to request map copyright attribution information for a section of a tileset.",
- "operationId": "RenderV2_GetMapAttribution",
+ "operationId": "GetMapAttribution",
"x-ms-examples": {
"GetMapAttribution": {
"$ref": "./examples/GetMapAttributionV2.json"
@@ -197,7 +197,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RenderApiVersionV2"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "../2.0/render.json#/parameters/TilesetId_rv2"
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 9096244253c0..a5771c613d6b 100644
--- a/specification/maps/data-plane/Route/preview/1.0/route.json
+++ b/specification/maps/data-plane/Route/preview/1.0/route.json
@@ -42,7 +42,7 @@
],
"responses": {},
"parameters": {
- "RouteApiVersion": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -748,7 +748,7 @@
"/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": "Route_PostRouteMatrix",
+ "operationId": "PostRouteMatrix",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
@@ -763,10 +763,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RouteApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "waitForResults",
@@ -852,7 +852,7 @@
},
"get": {
"description": "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": "Route_GetRouteMatrix",
+ "operationId": "GetRouteMatrix",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "original-uri"
@@ -867,7 +867,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RouteApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/MatrixId"
@@ -892,7 +892,7 @@
"/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": "Route_PostRouteMatrixSync",
+ "operationId": "PostRouteMatrixSync",
"x-ms-examples": {
"PostRouteMatrixSync": {
"$ref": "./examples/PostRouteMatrixSync.json"
@@ -903,10 +903,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RouteApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "waitForResults",
@@ -994,7 +994,7 @@
"/route/directions/{format}": {
"get": {
"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": "Route_GetRouteDirections",
+ "operationId": "GetRouteDirections",
"x-ms-examples": {
"GetRouteDirections": {
"$ref": "./examples/GetRouteDirections.json"
@@ -1005,10 +1005,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RouteApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"name": "query",
@@ -1169,7 +1169,7 @@
},
"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": "Route_PostRouteDirections",
+ "operationId": "PostRouteDirections",
"x-ms-examples": {
"PostRouteDirections": {
"$ref": "./examples/PostRouteDirections.json"
@@ -1180,10 +1180,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RouteApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"name": "query",
@@ -1355,7 +1355,7 @@
"/route/range/{format}": {
"get": {
"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": "Route_GetRouteRange",
+ "operationId": "GetRouteRange",
"x-ms-examples": {
"GetRouteRange": {
"$ref": "./examples/GetRouteRange.json"
@@ -1366,10 +1366,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RouteApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"name": "query",
@@ -1507,7 +1507,7 @@
"/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": "Route_PostRouteDirectionsBatch",
+ "operationId": "PostRouteDirectionsBatch",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
@@ -1522,10 +1522,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RouteApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "postRouteDirectionsBatchRequestBody",
@@ -1554,7 +1554,7 @@
},
"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```",
- "operationId": "Route_GetRouteDirectionsBatch",
+ "operationId": "GetRouteDirectionsBatch",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "original-uri"
@@ -1569,7 +1569,7 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RouteApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/BatchId"
@@ -1594,7 +1594,7 @@
"/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": "Route_PostRouteDirectionsBatchSync",
+ "operationId": "PostRouteDirectionsBatchSync",
"x-ms-examples": {
"PostRouteDirectionsBatchSync": {
"$ref": "./examples/PostRouteDirectionsBatchSync.json"
@@ -1605,10 +1605,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/RouteApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "postRouteDirectionsBatchRequestBody",
diff --git a/specification/maps/data-plane/Search/preview/1.0/search.json b/specification/maps/data-plane/Search/preview/1.0/search.json
index c6bf27e56b86..b14b25e8937d 100644
--- a/specification/maps/data-plane/Search/preview/1.0/search.json
+++ b/specification/maps/data-plane/Search/preview/1.0/search.json
@@ -42,7 +42,7 @@
],
"responses": {},
"parameters": {
- "SearchApiVersion": {
+ "ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
@@ -370,7 +370,7 @@
"/search/polygon/{format}": {
"get": {
"description": "**Get Polygon**\n\n\n**Applies to**: S1 pricing tier.\n\n\nThe Get Polygon service allows you to request the geometry data such as a city or country outline for a set of entities, previously retrieved from an Online Search request in GeoJSON format. The geometry ID is returned in the dataSources object under \"geometry\" and \"id\" in either a Search Address or Search Fuzzy call.\n\nPlease note that any geometry ID retrieved from an Online Search endpoint has a limited lifetime. The client should not store geometry IDs in persistent storage for later referral, as the stability of these identifiers is not guaranteed for a long period of time. It is expected that a request to the Polygon method is made within a few minutes of the request to the Online Search method that provided the ID. The service allows for batch requests up to 20 identifiers.",
- "operationId": "Search_GetSearchPolygon",
+ "operationId": "GetSearchPolygon",
"x-ms-examples": {
"Get the Geometry using the geometry id returned by the previous Search": {
"$ref": "./examples/GetSearchPolygon.json"
@@ -381,10 +381,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SearchApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "geometries",
@@ -413,7 +413,7 @@
"/search/fuzzy/{format}": {
"get": {
"description": "\n**Free Form Search**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThe basic default API is Free Form Search which handles the most fuzzy of inputs handling any combination of address or POI tokens. This search API is the canonical 'single line search'. The Free Form Search API is a seamless combination of POI search and geocoding. The API can also be weighted with a contextual position (lat./lon. pair), or fully constrained by a coordinate and radius, or it can be executed more generally without any geo biasing anchor point.
We strongly advise you to use the 'countrySet' parameter to specify only the countries for which your application needs coverage, as the default behavior will be to search the entire world, potentially returning unnecessary results.
E.g.: `countrySet`=US,FR
Please see [Search Coverage](https://docs.microsoft.com/azure/location-based-services/geocoding-coverage) for a complete list of all the supported countries.
Most Search queries default to `maxFuzzyLevel`=2 to gain performance and also reduce unusual results. This new default can be overridden as needed per request by passing in the query param `maxFuzzyLevel`=3 or 4.",
- "operationId": "Search_GetSearchFuzzy",
+ "operationId": "GetSearchFuzzy",
"x-ms-examples": {
"Search City Seattle": {
"$ref": "./examples/GetSearchFuzzy.json"
@@ -424,10 +424,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SearchApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"name": "query",
@@ -520,7 +520,7 @@
"/search/poi/{format}": {
"get": {
"description": "**Get POI by Name**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nPoints of Interest (POI) Search allows you to request POI results by name. Search supports additional query parameters such as language and filtering results by area of interest driven by country or bounding box. Endpoint will return only POI results matching the query string. Response includes POI details such as address, coordinate location and category.",
- "operationId": "Search_GetSearchPOI",
+ "operationId": "GetSearchPOI",
"x-ms-examples": {
"Search for juice bars within 5 miles of Seattle Downtown and limit the response to 5 results": {
"$ref": "./examples/GetSearchPOI.json"
@@ -531,10 +531,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SearchApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"name": "query",
@@ -608,7 +608,7 @@
"/search/nearby/{format}": {
"get": {
"description": "**Nearby Search**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nIf you have a use case for only retrieving POI results around a specific location, the nearby search method may be the right choice. This endpoint will only return POI results, and does not take in a search query parameter.",
- "operationId": "Search_GetSearchNearby",
+ "operationId": "GetSearchNearby",
"x-ms-examples": {
"Search for any points of interest (POI) within 5 miles of Manhattan NY and return the top 10 results": {
"$ref": "./examples/GetSearchNearby.json"
@@ -619,10 +619,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SearchApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"$ref": "#/parameters/RequiredBiasLat"
@@ -680,7 +680,7 @@
"/search/poi/category/{format}": {
"get": {
"description": "**Get POI by Category**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nPoints of Interest (POI) Category Search allows you to request POI results from given category. Search allows to query POIs from one category at a time. Endpoint will only return POI results which are categorized as specified. Response includes POI details such as address, coordinate location and classification.",
- "operationId": "Search_GetSearchPOICategory",
+ "operationId": "GetSearchPOICategory",
"x-ms-examples": {
"Search for atm's within 2 miles of Times Square NY and return the top 3 results": {
"$ref": "./examples/GetSearchPOICategory.json"
@@ -691,10 +691,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SearchApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"name": "query",
@@ -768,7 +768,7 @@
"/search/poi/category/tree/{format}": {
"get": {
"description": "**Get POI Category Tree**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nPOI Category API provides a full list of supported Points of Interest (POI) categories and subcategories together with their translations and synonyms. The returned content can be used to provide more meaningful results through other Search Service APIs, like [Get Search POI](https://docs.microsoft.com/rest/api/maps/search/getsearchpoi).",
- "operationId": "Search_GetSearchPOICategoryTreePreview",
+ "operationId": "GetSearchPOICategoryTree",
"x-ms-examples": {
"Get the POI Category Tree (only partial response shown below)": {
"$ref": "./examples/GetSearchPOICategoryTree.json"
@@ -779,10 +779,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SearchApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/JsonFormat"
},
{
"name": "language",
@@ -807,7 +807,7 @@
"/search/address/{format}": {
"get": {
"description": "**Address Geocoding**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nIn many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocode endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No POIs will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties, states etc.",
- "operationId": "Search_GetSearchAddress",
+ "operationId": "GetSearchAddress",
"x-ms-examples": {
"Search detail address 15127 NE 24th Street, Redmond, WA 98052": {
"$ref": "./examples/GetSearchAddress.json"
@@ -818,10 +818,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SearchApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"name": "query",
@@ -883,7 +883,7 @@
"/search/address/reverse/{format}": {
"get": {
"description": "**Reverse Geocode to an Address**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThere may be times when you need to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located. This endpoint will return address information for a given coordinate.",
- "operationId": "Search_GetSearchAddressReverse",
+ "operationId": "GetSearchAddressReverse",
"x-ms-examples": {
"GetSearchAddressReverse": {
"$ref": "./examples/GetSearchAddressReverse.json"
@@ -894,10 +894,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SearchApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"$ref": "#/parameters/Position"
@@ -1026,7 +1026,7 @@
"/search/address/reverse/crossStreet/{format}": {
"get": {
"description": "**Reverse Geocode to a Cross Street**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThere may be times when you need to translate a coordinate (example: 37.786505, -122.3862) into a human understandable cross street. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located.\nThis endpoint will return cross street information for a given coordinate.",
- "operationId": "Search_GetSearchAddressReverseCrossStreet",
+ "operationId": "GetSearchAddressReverseCrossStreet",
"x-ms-examples": {
"GetSearchAddressReverseCrossStreet": {
"$ref": "./examples/GetSearchAddressReverseCrossStreet.json"
@@ -1037,10 +1037,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SearchApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"$ref": "#/parameters/Position"
@@ -1082,7 +1082,7 @@
"/search/address/structured/{format}": {
"get": {
"description": "**Structured Address Geocoding**\n\n**Applies to**: S0 and S1 pricing tiers.\n\n\nAzure Address Geocoding can also be accessed for structured address look up exclusively. The geocoding search index will be queried for everything above the street level data. No POIs will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties, states etc.",
- "operationId": "Search_GetSearchAddressStructured",
+ "operationId": "GetSearchAddressStructured",
"x-ms-examples": {
"GetSearchAddressStructured": {
"$ref": "./examples/GetSearchAddressStructured.json"
@@ -1093,10 +1093,10 @@
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
- "$ref": "#/parameters/SearchApiVersion"
+ "$ref": "#/parameters/ApiVersion"
},
{
- "$ref": "../../../Common/preview/1.0/common.json#/parameters/TextFormat"
+ "$ref": "../../../Common/preview/1.0/common.json#/parameters/ResponseFormat"
},
{
"$ref": "#/parameters/Language"
@@ -1191,7 +1191,7 @@
"/search/geometry/{format}": {
"post": {
"description": "**Applies to**: S0 and S1 pricing tiers.\n\nThe Search Geometry endpoint allows you to perform a free form search inside a single geometry or many of them. The search results that fall inside the geometry/geometries will be returned.
To send the geometry you will use a `POST` request where the request body will contain the `geometry` object represented as a `GeoJSON` type and the `Content-Type` header will be set to `application/json`. The geographical features to be searched can be modeled as Polygon and/or Circle geometries represented using any one of the following `GeoJSON` types: