Geo.ArcGIS 2.0.0

dotnet add package Geo.ArcGIS --version 2.0.0
NuGet\Install-Package Geo.ArcGIS -Version 2.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Geo.ArcGIS" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Geo.ArcGIS --version 2.0.0
#r "nuget: Geo.ArcGIS, 2.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Geo.ArcGIS as a Cake Addin
#addin nuget:?package=Geo.ArcGIS&version=2.0.0

// Install Geo.ArcGIS as a Cake Tool
#tool nuget:?package=Geo.ArcGIS&version=2.0.0

ArcGIS Geocoding

This allows the simple calling of ArcGIS geocoding APIs. The supported ArcGIS geocoding endpoints are:

Configuration

In the startup ConfigureServices method, add the configuration for the ArcGIS service:

using Geo.Extensions.DependencyInjection;
.
.
.
public void ConfigureServices(IServiceCollection services)
{
    .
    .
    .
    var builder = services.AddArcGISGeocoding();
    builder.AddClientCredentials(your_arcgis_client_id_here, your_arcgis_client_secret_here);
    builder.HttpClientBuilder.ConfigureHttpClient(configure_client);
    .
    .
    .
}

Client Id and Secret

Not all ArcGIS geocoding endpoints require a client id and secret. The endpoints that require the id and secret are:

  • Geocoding
  • Reverse Geocoding

The endpoints where it is optional based on the request type:

  • Address Candidate
  • Place Candidate

The endpoints where it is not required at all:

  • Suggest

Sample Usage

By calling AddArcGISGeocoding, the IArcGISGeocoding interface has been added to the IOC container. Just request it as a DI item:

public MyService(IArcGISGeocoding arcgisGeocoding)
{
    ...
}

Now simply call the geocoding methods in the interface.

Storing results

For some ArcGIS endpoints, it is required to specify whether or not the information is being stored. The parameters have a property called ForStorage. If the result of the request to ArcGIS is being stored, this MUST be set to true. As per the ArcGIS documentation:

Specifies whether the results of the operation will be persisted. The default value is false, which indicates the results of the operation can't be stored, but they can be temporarily displayed on a map for instance. If you store the results, in a database, for example, you need to set this parameter to true.

Applications are contractually prohibited from storing the results of geocoding transactions unless they make the request by passing the forStorage parameter with a value of true and the token parameter with a valid ArcGIS Online token. Instructions for composing a request with a valid token are provided in the authentication topic.

This library/product does not take any responsibility for misusing the ForStorage flag.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 118 1/29/2024
2.0.0-alpha.8 45 1/28/2024
2.0.0-alpha.7 45 1/28/2024
2.0.0-alpha.6 54 1/22/2024
2.0.0-alpha.3 45 1/21/2024
2.0.0-alpha.2 65 1/14/2024
1.6.0 151 12/30/2023
1.6.0-alpha.11 61 9/19/2023
1.6.0-alpha.7 67 9/2/2023
1.5.2 128 9/19/2023
1.5.1 117 9/2/2023
1.5.0 147 6/4/2023
1.5.0-alpha.4 62 5/27/2023
1.5.0-alpha.3 73 4/13/2023
1.5.0-alpha.2 76 4/12/2023
1.5.0-alpha.1 70 4/11/2023
1.4.0 176 4/8/2023
1.4.0-alpha.3 73 4/7/2023
1.4.0-alpha.2 73 4/7/2023
1.4.0-alpha.1 77 4/6/2023
1.3.0 142 4/4/2023
1.3.0-alpha.12 73 4/3/2023
1.3.0-alpha.11 71 4/3/2023
1.3.0-alpha.10 81 4/2/2023
1.3.0-alpha.9 78 4/2/2023
1.3.0-alpha.6 89 1/15/2023
1.3.0-alpha.5 105 8/20/2022
1.2.1 160 4/2/2023
1.2.0 1,100 8/20/2022
1.2.0-alpha.4 88 8/19/2022
1.2.0-alpha.3 106 8/14/2022
1.2.0-alpha.2 96 7/22/2022
1.1.1 579 7/22/2022
1.1.0 613 6/4/2022
1.1.0-alpha.5 107 5/29/2022
1.1.0-alpha.4 102 5/29/2022
1.1.0-alpha.3 98 5/28/2022
1.1.0-alpha.2 109 5/24/2022
1.0.0 664 1/10/2021