Skip to content

Commit feeffc1

Browse files
975834 - Maps AI UG content keywords highlighted
1 parent 67ec9ac commit feeffc1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

MAUI/Maps/AI-driven-smart-location-search.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ documentation: ug
99

1010
# AI-Driven Smart Location Search in .NET MAUI Maps (SfMaps)
1111

12-
This document provides a comprehensive guide to implementing advanced search functionality within the Syncfusion [.NET MAUI Maps](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Maps.SfMaps.html) control. By integrating Azure OpenAI, this solution enables an intelligent, AI-powered location search experience.
12+
This document provides a comprehensive guide to implementing advanced search functionality within the Syncfusion [.NET MAUI Maps](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Maps.SfMaps.html) control. By integrating **Azure OpenAI**, this solution enables an intelligent, AI-powered location search experience.
1313

1414
## Integrating Azure OpenAI with the .NET MAUI app
1515

@@ -21,7 +21,7 @@ Once you get your key and endpoint, follow these steps:
2121

2222
### Step 1: Set up Azure OpenAI
2323

24-
To configure Azure OpenAI, we’ll use the GPT-4O model for text and the DALL-E model for images. Set up the `OpenAIClient` as shown in the following code example.
24+
To configure **Azure OpenAI**, we’ll use the **GPT-4O** model for text and the **DALL-E** model for images. Set up the `OpenAIClient` as shown in the following code example.
2525

2626
{% tabs %}
2727

@@ -62,11 +62,11 @@ To set up the connection to Azure OpenAI. Refer to the following code.
6262

6363
{% endtabs %}
6464

65-
This connection allows you to send prompts to the model and receive responses, which can be used to generate map markers for .NET MAUI Maps.
65+
This connection allows you to send prompts to the model and **receive responses**, which can be used to generate map markers for .NET MAUI Maps.
6666

6767
### Step 3: Get the result from the AI service
6868

69-
Implement the `GetResultsFromAI` and `GetImageFromAI` methods to retrieve responses from the OpenAI API based on user input.
69+
Implement the `GetResultsFromAI` and `GetImageFromAI` methods to retrieve responses from the **OpenAI** API based on user input.
7070

7171
{% tabs %}
7272

@@ -110,15 +110,15 @@ public async Task<Uri> GetImageFromAI(string? locationName)
110110

111111
{% endtabs %}
112112

113-
The AzureOpenAIService class now offers a convenient way to interact with the OpenAI API and retrieve completion results based on the provided prompt.
113+
The **AzureOpenAIService** class now offers a convenient way to interact with the **OpenAI** API and retrieve completion results based on the provided **prompt**.
114114

115115
## Integrating AI-powered smart location search in .NET MAUI Autocomplete
116116

117-
To design the AI-powered smart location search UI using the [.NET MAUI Autocomplete](https://www.syncfusion.com/maui-controls/maui-autocomplete) control and then map the selected location into the .NET MAUI Maps control. Before proceeding, please refer to the getting started documentation for both Syncfusion .NET MAUI Maps and Autocomplete controls.
117+
To design the AI-powered smart location search UI using the [.NET MAUI Autocomplete](https://www.syncfusion.com/maui-controls/maui-autocomplete) control and then map the selected location into the **.NET MAUI Maps** control. Before proceeding, please refer to the getting started documentation for both Syncfusion .NET MAUI Maps and Autocomplete controls.
118118

119119
### Step 1: Create a custom marker model
120120

121-
Create a custom marker model to define geographic location information for .NET MAUI Maps tile layer markers. The model can also include a name, details, address, and image to provide additional information for the marker tooltip.
121+
Create a custom marker model to define geographic location information for .NET MAUI **Maps tile layer markers**. The model can also include a name, details, address, and image to provide additional information for the **marker tooltip**.
122122

123123
{% tabs %}
124124

@@ -316,7 +316,7 @@ Refer to the following code example to add the .NET MAUI Autocomplete control an
316316

317317
### Step 5: Enable AI-powered smart searching in .NET MAUI Maps
318318

319-
Add the prompt that requests the AI service to convert the user input into geographic locations in JSON format. The JSON data is then parsed into custom markers, which are added to the .NET MAUI Maps by using its Markers property in the MapTileLayer class.
319+
Add the **prompt** that requests the AI service to convert the user input into geographic locations in **JSON** format. The **JSON** data is then parsed into custom markers, which are added to the **.NET MAUI Maps** by using its **Markers** property in the **MapTileLayer** class.
320320

321321
{% tabs %}
322322

0 commit comments

Comments
 (0)