AddressNet 0.0.1

dotnet add package AddressNet --version 0.0.1                
NuGet\Install-Package AddressNet -Version 0.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="AddressNet" Version="0.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AddressNet --version 0.0.1                
#r "nuget: AddressNet, 0.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.
// Install AddressNet as a Cake Addin
#addin nuget:?package=AddressNet&version=0.0.1

// Install AddressNet as a Cake Tool
#tool nuget:?package=AddressNet&version=0.0.1                

AddressNet

Minimal library to retrieve addresses in countries.

Benchmark


BenchmarkDotNet v0.13.12,
[Host]    : .NET 6.0.26 (6.0.2623.60508), X64 RyuJIT AVX2 [AttachedDebugger]
MediumRun : .NET 6.0.26 (6.0.2623.60508), X64 RyuJIT AVX2


Method Mean Error StdDev Gen0 Allocated
GetAllAddress 7.544 us 0.6302 us 0.9238 us 28.5645 60032 B
GetByPostalCode 44.804 us 8.9618 us 12.8527 us 0.1221 337 B
GetByWords 387.451 us 19.2788 us 27.6491 us 1.9531 4425 B
GetByWordsToStringComplete 517.446 us 47.9095 us 71.7086 us 1.4648 3845 B

Usage

public class AddressThModel
{
    public string SubDistrict { get; set; }
    public string District { get; set; }
    public string Province { get; set; }
    public int PostalCode { get; set; }
}
using AddressNet.Services.TH;

var result = AddressTH.GetAllAddress();

var result = AddressTH.GetByPostalCode(10100);

var result = AddressTH.GetByWords("กรุงเทพ");

string[] result = AddressTH.GetByWordsToStringComplete("บ้านไผ่");
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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
0.0.1 133 1/26/2024