From 233161d23aac676e12f2d440bc150e38d1798067 Mon Sep 17 00:00:00 2001 From: Sebastian Schubotz Date: Thu, 24 Feb 2022 11:28:06 +0100 Subject: [PATCH] Add EntityType to SearchResult In structured or query searches for e.g. "Berlin", there will be multiple results with the type `Geography` where another field `entityType` is present. This field gives more information about the geography type. See the docs: https://docs.microsoft.com/en-us/javascript/api/azure-maps-rest/atlas.service.models.entitytype?view=azure-maps-typescript-latest --- .../AzureMapsRestToolkit/Search/SearchResult.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/AzureMapsRestToolkit/AzureMapsRestToolkit/Search/SearchResult.cs b/AzureMapsRestToolkit/AzureMapsRestToolkit/Search/SearchResult.cs index c828775..675f6c5 100644 --- a/AzureMapsRestToolkit/AzureMapsRestToolkit/Search/SearchResult.cs +++ b/AzureMapsRestToolkit/AzureMapsRestToolkit/Search/SearchResult.cs @@ -50,6 +50,12 @@ public class SearchResult [JsonPropertyName("type")] public string Type { get; set; } + /// + /// Entity type property + /// + [JsonPropertyName("entityType")] + public string EntityType { get; set; } + /// /// The viewport that covers the result represented by the top-left and bottom-right coordinates of the viewport. @@ -57,4 +63,4 @@ public class SearchResult [JsonPropertyName("viewport")] public SearchResultViewport Viewport { get; set; } } -} \ No newline at end of file +}