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
<PackageReference Include="Devlord.Utilities.MapsApi" Version="7.0.1" />
<PackageVersion Include="Devlord.Utilities.MapsApi" Version="7.0.1" />
<PackageReference Include="Devlord.Utilities.MapsApi" />
paket add Devlord.Utilities.MapsApi --version 7.0.1
#r "nuget: Devlord.Utilities.MapsApi, 7.0.1"
#:package Devlord.Utilities.MapsApi@7.0.1
#addin nuget:?package=Devlord.Utilities.MapsApi&version=7.0.1
#tool nuget:?package=Devlord.Utilities.MapsApi&version=7.0.1
Devlord.Utilities.MapsApi
A useful class library for universal utilities like sending emails and consuming RESTful APIs.
| Main | Develop | 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 | Versions 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. |
-
net10.0
- Devlord.Utilities (>= 7.0.1)
-
net8.0
- Devlord.Utilities (>= 7.0.1)
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 |