Geo-spatial search is prevalent in everyday applications that power our day-to-day lives. In this presentation, you will learn how to use Azure-Search to power geospatial search application. This is a hands-on demo during which you will learn how to do the following operations described below using Postman and then later on walk through an end-to-end multi-tier application that integrates an Angular Web Application, a .NET CORE Web API with an Azure Search backend to demonstrate the full range of geospatial capabilities of Azure Search:
- Create an Index
- List all Indicies within the Service
- Load Geospatial Records into an Azure Search Index
- Query for Records within and outside of a specific radius
- Query for Records within and outside of a specific polygon
- Query for Records within a specific distance inside and outside a pre-defined polygon
During the demo, we will cover some real-world use cases where the geospatial capabilities of Azure Search could come in pretty handy such as tracking of important assets such as cruise ships in the sea, aircrafts, moving trucks and inventory at construction sites.
Primary Audience: Geo-Spatial Application Developers, Solution Architects.
The content is designed as an intermediate to advanced level presentation for software engineers, application developers and/or architects.
- Fundamental working knowledge of Azure Portal and Azure Search
- Fundamental working knowledge of HTML and Angular
- Familiarity with Visual Studio Code and minimum C# knowledge
- Familiarity with Postman
- .NET Core SDK 2.2
- Angular CLI: 7.3.0
- Node: 10.15.1
- Angular: 7.2.4
You can use the post man scripts here to create an index, add documents to the index and run queries against the index.
You will need to define the following variables in your postman environment:
- QueryApiKey
- AdminApiKey
- serviceName
- apiVersion
- indexName
Variable | Example | Description |
---|---|---|
QueryApiKey | 079D3CCA69A550B2E4D8733F65D89590 | The admin api key for admin operations |
AdminApiKey | 079D3CCA69A550B2E4D8733F65D89591 | The query api key for read only queries |
serviceName | isp20demo | The name of your Azure Search service |
apiVersion | 2017-11-11 | The API version you are using |
indexName | hotels | The name of the Azure Search index. |
https://www.getpostman.com/docs/v6/postman/launching_postman/installation_and_updates
https://www.getpostman.com/docs/v6/postman/environments_and_globals/variables
https://docs.microsoft.com/en-us/rest/api/searchservice/index-operations
https://docs.microsoft.com/en-us/azure/search/search-import-data-rest-api
https://docs.microsoft.com/en-us/rest/api/searchservice/supported-data-types
https://docs.microsoft.com/en-us/rest/api/searchservice/lucene-query-syntax-in-azure-search
https://docs.microsoft.com/en-us/azure/search/search-query-rest-api
https://docs.microsoft.com/en-us/azure/search/search-sku-tier