This library covers 36 Azure Maps services including the following services
- Geolocation services
- Render services
- Route services
- Search services
- TimeZone services
- Traffic services
Exception is captures by the library and if any exceptions captured it will be return in the Error proprty in the returned object. See example below.
Search address example
var am = new AzureMapsToolkit.AzureMapsServices('<Azure Maps Key>');
var searchAddressRequest = new SearchAddressRequest
{
Query = "15127 NE 24th Street,Redmond, WA 98052",
Limit = 10
};
var resp = am.GetSearchAddress(searchAddressRequest).Result;
if (resp.Error == null)
{
//Handle error
}
PM> Install-Package AzureMapsRestToolkit