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
                    
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="MX.GeoLocation.Api.Client.V1" Version="1.2.46" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MX.GeoLocation.Api.Client.V1" Version="1.2.46" />
                    
Directory.Packages.props
<PackageReference Include="MX.GeoLocation.Api.Client.V1" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MX.GeoLocation.Api.Client.V1 --version 1.2.46
                    
#r "nuget: MX.GeoLocation.Api.Client.V1, 1.2.46"
                    
#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.
#:package MX.GeoLocation.Api.Client.V1@1.2.46
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MX.GeoLocation.Api.Client.V1&version=1.2.46
                    
Install as a Cake Addin
#tool nuget:?package=MX.GeoLocation.Api.Client.V1&version=1.2.46
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed