MX.GeoLocation.Api.Client.V1
1.2.46
dotnet add package MX.GeoLocation.Api.Client.V1 --version 1.2.46
NuGet\Install-Package MX.GeoLocation.Api.Client.V1 -Version 1.2.46
<PackageReference Include="MX.GeoLocation.Api.Client.V1" Version="1.2.46" />
<PackageVersion Include="MX.GeoLocation.Api.Client.V1" Version="1.2.46" />
<PackageReference Include="MX.GeoLocation.Api.Client.V1" />
paket add MX.GeoLocation.Api.Client.V1 --version 1.2.46
#r "nuget: MX.GeoLocation.Api.Client.V1, 1.2.46"
#:package MX.GeoLocation.Api.Client.V1@1.2.46
#addin nuget:?package=MX.GeoLocation.Api.Client.V1&version=1.2.46
#tool nuget:?package=MX.GeoLocation.Api.Client.V1&version=1.2.46
MX.GeoLocation.Api.Client.V1
Authenticated REST client for the GeoLocation lookup API. Provides DI registration, token management, retry policies, and versioned API access.
Installation
dotnet add package MX.GeoLocation.Api.Client.V1
Quick Start
Register Services
builder.Services.AddGeoLocationApiClient(options =>
{
options.ConfigureBaseUrl("https://geolocation-api.example.com");
});
Inject and Use
public class MyService
{
private readonly IGeoLocationApiClient _client;
public MyService(IGeoLocationApiClient client)
{
_client = client;
}
public async Task<GeoLocationDto?> LookupAddress(string hostname)
{
var result = await _client.GeoLookup.V1.GetGeoLocation(hostname);
if (result.IsSuccess)
return result.Result;
return null;
}
public async Task<CityGeoLocationDto?> LookupCityDetails(string hostname)
{
var result = await _client.GeoLookup.V1_1.GetCityGeoLocation(hostname);
if (result.IsSuccess)
return result.Result;
return null;
}
}
Health and Info Endpoints
var health = await _client.ApiHealth.CheckHealth();
var info = await _client.ApiInfo.GetApiInfo();
API Surface
The IGeoLocationApiClient exposes:
| Property | Description |
|---|---|
GeoLookup |
Versioned geo-lookup API (V1 and V1.1) |
ApiInfo |
API version and build information |
ApiHealth |
Health check endpoint |
Testing
Use the companion package MX.GeoLocation.Api.Client.Testing for in-memory fakes and test helpers.
License
This project is licensed under the GPL-3.0-only license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Azure.Identity (>= 1.17.1)
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Options (>= 10.0.3)
- MX.Api.Abstractions (>= 2.3.25)
- MX.Api.Client (>= 2.3.25)
- MX.GeoLocation.Abstractions.V1 (>= 1.2.46)
- Newtonsoft.Json (>= 13.0.4)
- RestSharp (>= 113.1.0)
-
net9.0
- Azure.Identity (>= 1.17.1)
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Options (>= 10.0.3)
- MX.Api.Abstractions (>= 2.3.25)
- MX.Api.Client (>= 2.3.25)
- MX.GeoLocation.Abstractions.V1 (>= 1.2.46)
- Newtonsoft.Json (>= 13.0.4)
- RestSharp (>= 113.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MX.GeoLocation.Api.Client.V1:
| Package | Downloads |
|---|---|
|
MX.GeoLocation.Api.Client.Testing
Test helpers for consumer apps: in-memory fakes of IGeoLocationApiClient, DTO factory methods, and DI extensions for integration tests. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.46 | 228 | 4/26/2026 |
| 1.2.39 | 967 | 4/5/2026 |
| 1.2.38 | 110 | 4/5/2026 |
| 1.2.36 | 115 | 4/5/2026 |
| 1.2.35 | 111 | 4/5/2026 |
| 1.2.27 | 145 | 3/22/2026 |
| 1.2.18 | 166 | 3/7/2026 |
| 1.2.16 | 177 | 3/2/2026 |
| 1.2.4 | 173 | 2/21/2026 |
| 1.2.2 | 281 | 2/20/2026 |
| 1.2.1 | 132 | 2/19/2026 |
| 1.1.20260212.3 | 377 | 2/12/2026 |
| 1.1.20260212.2 | 161 | 2/12/2026 |
| 1.1.20260212.1 | 122 | 2/12/2026 |
| 1.1.20260211.2 | 186 | 2/11/2026 |
| 1.1.20260211.1 | 113 | 2/11/2026 |
| 1.1.20260209.1 | 267 | 2/9/2026 |
| 1.1.20260207.3 | 122 | 2/7/2026 |
| 1.0.28 | 112 | 2/19/2026 |
| 1.0.27 | 110 | 2/19/2026 |