This library covers 73 Azure Maps endpoints including the following services
- Data services
- Geolocation services
- Render services
- Route services
- Search services
- Spatial services
- TimeZone services
- Traffic services
- Mobility services
- Weather services
- Elevation services
Exception is captures by the library and if any exceptions captured it will be return in the Error property 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
See issue perfahlen#33
NOTE, this version is deprecated and last release is 6.0.0.0
The .Net Standard release is available in the net-standard branch.
Nuget: Install-Package AzureMapsRestToolkit -Version 6.0.0
.NET CLI dotnet add package AzureMapsRestToolkit --version 6.0.0
PackageReference <PackageReference Include="AzureMapsRestToolkit" Version="6.0.0" />
Cake
#addin nuget:?package=AzureMapsRestToolkit&version=6.0.0
// Install AzureMapsRestToolkit as a Cake Tool
#tool nuget:?package=AzureMapsRestToolkit&version=6.0.0