Devlord.Utilities.MapsApi 7.0.1

dotnet add package Devlord.Utilities.MapsApi --version 7.0.1
                    
NuGet\Install-Package Devlord.Utilities.MapsApi -Version 7.0.1
                    
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="Devlord.Utilities.MapsApi" Version="7.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Devlord.Utilities.MapsApi" Version="7.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Devlord.Utilities.MapsApi" />
                    
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 Devlord.Utilities.MapsApi --version 7.0.1
                    
#r "nuget: Devlord.Utilities.MapsApi, 7.0.1"
                    
#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 Devlord.Utilities.MapsApi@7.0.1
                    
#: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=Devlord.Utilities.MapsApi&version=7.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Devlord.Utilities.MapsApi&version=7.0.1
                    
Install as a Cake Tool

Devlord.Utilities.MapsApi

A useful class library for universal utilities like sending emails and consuming RESTful APIs.

Main Develop NuGet
.NET .NET NuGet

To install Devlord.Utilities.MapsApi, run the following command in the Package Manager Console:

PM> Install-Package Devlord.Utilities.MapsApi

Or from the command-line:

dotnet add package Devlord.Utilities.MapsApi

Changes from Devlord.Utilities 6.0

  • UnderscoreContractResolver has been removed in favor of System.Text.Json snake case handling.
  • ValueText.Value has been changed from string to decimal.

Distance API

POCO classes for accessing the Google Maps distance API.

Usage with a custom JSON contract resolver that converts the Google JSON property names to POCO object properties.

    const string BaseUri = "https://maps.googleapis.com/maps/api/distancematrix/json";

    using (IApiCall client = new ApiCall(BaseUri,
            new JsonSerializerSettings { ContractResolver = new UnderscoreContractResolver() }))
    {
        client.QueryParams.Add("sensor", "false");
        client.QueryParams.Add("origins", "95969");
        client.QueryParams.Add("destinations", "95928");
        IApiResult<dynamic> result = client.Execute<DistanceResults>();
    }

Configuration

{
  "Devlord.Utilities": {
    "GoogleMapsApiKey": "",
  }
}

Contributing

Yes, please!

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Contact lorddev on GitHub or @devlord@hachyderm.io on Mastodon.

Product Compatible and additional computed target framework versions.
.NET 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.  net9.0 was computed.  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

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
7.0.1 34 2/28/2026
7.0.1-preview.14 29 2/28/2026
7.0.1-preview 35 2/28/2026