none
GetSearchAddress API RRS feed

  • Question

  • I use GetSearchAddress in AzureMapsRestToolkit library c#:

    public Task<Response<SearchAddressResponse>> GetSearchAddress(string region)
    {
            AzureMapsServices amService = new AzureMapsServices(subscriptionkey);
            var searchAddress = new SearchAddressRequest
            {
                Query = region,
                Typeahead = true,
                Limit = 1
            };
            return amService.GetSearchAddress(searchAddress);            
    }

    I want to send Country or Region name and get Geometry Id to use it in GetSearchPolygon(). 

    Two questions:

    1. I do not see GetSearchPolygon in AzureMapsServices class. I see only GetSearchInsidePolygon . Is it the same? 

    2. When I get response from GetSearchAddress , I see the Geometry Id is null. But in the web, for example using by url with this in the browser I see the id is full and consists the value. Why do not I see it by using API from c#?


    • Edited by D.Volkov Wednesday, November 13, 2019 10:54 AM
    Wednesday, November 13, 2019 10:45 AM

All replies