Skip to content

Commit edfc57f

Browse files
authored
[Azure Maps] Add the boundingBox type to Search (#16930)
* Add address boundingbox def * Add entity enum
1 parent be8b6e1 commit edfc57f

File tree

1 file changed

+36
-3
lines changed
  • specification/maps/data-plane/Search/preview/1.0

1 file changed

+36
-3
lines changed

specification/maps/data-plane/Search/preview/1.0/search.json

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,9 +2438,7 @@
24382438
"readOnly": true
24392439
},
24402440
"boundingBox": {
2441-
"description": "Bounding box coordinates.",
2442-
"type": "object",
2443-
"readOnly": true
2441+
"$ref": "#/definitions/BoundingBoxCompassNotation"
24442442
}
24452443
}
24462444
},
@@ -2472,6 +2470,41 @@
24722470
}
24732471
}
24742472
},
2473+
"BoundingBoxCompassNotation": {
2474+
"description": "The bounding box of the location.",
2475+
"type": "object",
2476+
"readOnly": true,
2477+
"properties": {
2478+
"northEast": {
2479+
"description": "North-east (top-left) latitude,longitude coordinate of the bounding box as comma-separated floats",
2480+
"type": "string",
2481+
"readOnly": true
2482+
},
2483+
"southWest": {
2484+
"description": "South-west (bottom-right) latitude,longitude coordinate of the bounding box as comma-separated floats",
2485+
"type": "string",
2486+
"readOnly": true
2487+
},
2488+
"entity": {
2489+
"description": "Entity type source of the bounding box. For reverse-geocoding this is always equal to position.",
2490+
"type": "string",
2491+
"readOnly": true,
2492+
"enum": [
2493+
"position"
2494+
],
2495+
"x-ms-enum": {
2496+
"name": "Entity",
2497+
"modelAsString": true,
2498+
"values": [
2499+
{
2500+
"value": "position",
2501+
"description": "Position entity"
2502+
}
2503+
]
2504+
}
2505+
}
2506+
}
2507+
},
24752508
"EntryPoint": {
24762509
"description": "The entry point for the POI being returned.",
24772510
"type": "object",

0 commit comments

Comments
 (0)