From 4505a61220448fc5a1730693ef7cfe4b98ca270b Mon Sep 17 00:00:00 2001 From: alankashiwa Date: Mon, 29 Nov 2021 08:56:05 +0800 Subject: [PATCH 1/2] Add address boundingbox def --- .../data-plane/Search/preview/1.0/search.json | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) 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 4908a011ed0d..56a1b7bcc65b 100644 --- a/specification/maps/data-plane/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Search/preview/1.0/search.json @@ -2438,9 +2438,7 @@ "readOnly": true }, "boundingBox": { - "description": "Bounding box coordinates.", - "type": "object", - "readOnly": true + "$ref": "#/definitions/BoundingBoxCompassNotation" } } }, @@ -2472,6 +2470,28 @@ } } }, + "BoundingBoxCompassNotation": { + "description": "The bounding box of the location.", + "type": "object", + "readOnly": true, + "properties": { + "northEast": { + "description": "North-east (top-left) latitude,longitude coordinate of the bounding box as comma-separated floats", + "type": "string", + "readOnly": true + }, + "southWest": { + "description": "South-west (bottom-right) latitude,longitude coordinate of the bounding box as comma-separated floats", + "type": "string", + "readOnly": true + }, + "entity": { + "description": "Entity type source of the bounding box. For reverse-geocoding this is always equal to position.", + "type": "string", + "readOnly": true + } + } + }, "EntryPoint": { "description": "The entry point for the POI being returned.", "type": "object", From 910d390a084a8b09643c6f27dc256db6fd8fed9b Mon Sep 17 00:00:00 2001 From: alankashiwa Date: Wed, 1 Dec 2021 16:24:02 +0800 Subject: [PATCH 2/2] Add entity enum --- .../data-plane/Search/preview/1.0/search.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 56a1b7bcc65b..43407b7ef560 100644 --- a/specification/maps/data-plane/Search/preview/1.0/search.json +++ b/specification/maps/data-plane/Search/preview/1.0/search.json @@ -2488,7 +2488,20 @@ "entity": { "description": "Entity type source of the bounding box. For reverse-geocoding this is always equal to position.", "type": "string", - "readOnly": true + "readOnly": true, + "enum": [ + "position" + ], + "x-ms-enum": { + "name": "Entity", + "modelAsString": true, + "values": [ + { + "value": "position", + "description": "Position entity" + } + ] + } } } },