Skip to content

karol-gro/AzureMapsRestServices

 
 

Repository files navigation

Azure Maps REST Services

NuGet license

.NET 5 library to access AzureMaps Services

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

Exceptions

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.

Example

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
}

Installation with Nuget

PM> Install-Package AzureMapsRestToolkit

TLS 1.2 issue

See issue perfahlen#33

.Net Standard 2.0 library to access AzureMaps Services (DEPRECATED)

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

About

.Net 5 library to access AzureMaps Services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%