{"id":18277353,"url":"https://github.com/zhamppx97/addressnet","last_synced_at":"2026-04-11T21:11:38.785Z","repository":{"id":219291861,"uuid":"748372280","full_name":"zhamppx97/AddressNet","owner":"zhamppx97","description":"Minimal library to retrieve addresses in countries.","archived":false,"fork":false,"pushed_at":"2024-01-29T05:19:17.000Z","size":229,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-26T18:22:00.330Z","etag":null,"topics":["address","countries","dotnet","dotnet-standard","library","minimal","thailand"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhamppx97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"zhamppx97","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-01-25T20:43:51.000Z","updated_at":"2024-04-26T18:22:00.331Z","dependencies_parsed_at":"2024-01-29T06:54:42.684Z","dependency_job_id":"91442b32-01d5-4bdb-9fee-05522050ea34","html_url":"https://github.com/zhamppx97/AddressNet","commit_stats":null,"previous_names":["zhamppx97/addressnet"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhamppx97%2FAddressNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhamppx97%2FAddressNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhamppx97%2FAddressNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhamppx97%2FAddressNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhamppx97","download_url":"https://codeload.github.com/zhamppx97/AddressNet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980832,"owners_count":21027803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["address","countries","dotnet","dotnet-standard","library","minimal","thailand"],"created_at":"2024-11-05T12:18:50.017Z","updated_at":"2025-10-26T04:43:42.777Z","avatar_url":"https://github.com/zhamppx97.png","language":"C#","funding_links":["https://github.com/sponsors/zhamppx97"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"img/icon.png\" alt=\"Icon\" width=\"110\" /\u003e\n\n---\n## AddressNet v0.0.1\n\n[![][shield-badge]][linkto]\n\n[linkto]: https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-1\n[shield-badge]: https://img.shields.io/badge/.NET%20Standard%202.1-512BD4\n\nMinimal library to retrieve addresses in countries.\n\n## Benchmark\n``` ini\n\nBenchmarkDotNet v0.13.12,\n[Host]    : .NET 6.0.26 (6.0.2623.60508), X64 RyuJIT AVX2 [AttachedDebugger]\nMediumRun : .NET 6.0.26 (6.0.2623.60508), X64 RyuJIT AVX2\n\n\n```\n\n| Method                     | Mean       | Error      | StdDev     | Gen0    | Allocated |\n|--------------------------- |-----------:|-----------:|-----------:|--------:|----------:|\n| GetAllAddress              |   7.544 us |  0.6302 us |  0.9238 us | 28.5645 |   60032 B |\n| GetByPostalCode            |  44.804 us |  8.9618 us | 12.8527 us |  0.1221 |     337 B |\n| GetByWords                 | 387.451 us | 19.2788 us | 27.6491 us |  1.9531 |    4425 B |\n| GetByWordsToStringComplete | 517.446 us | 47.9095 us | 71.7086 us |  1.4648 |    3845 B |\n\n\n## Usage\n```csharp\npublic class AddressThModel\n{\n    public string SubDistrict { get; set; }\n    public string District { get; set; }\n    public string Province { get; set; }\n    public int PostalCode { get; set; }\n}\n```\n\n```csharp\nusing AddressNet.Services.TH;\n```\n\n```csharp\nvar result = AddressTH.GetAllAddress().ToList();\n\nvar result = AddressTH.GetByPostalCode(10100).ToList();\n\nvar result = AddressTH.GetByWords(\"กรุงเทพ\").ToList();\n```\n\n|SubDistrict  |District   |Province      |PostalCode   |\n|------------ |---------- |------------- |------------ |\n|คลองต้นไทร   |คลองสาน    |กรุงเทพมหานคร  |10600        |\n|คลองสาน     |คลองสาน    |กรุงเทพมหานคร  |10600        |\n|บางลำภูล่าง    |คลองสาน    |กรุงเทพมหานคร  |10600       |\n\n\n```csharp\nstring[] result = AddressTH.GetByWordsToStringComplete(\"บ้านไผ่\");\n```\n\n``` ini\n\n{\n    \"ตำบล บ้านลาน, อำเภอ บ้านไผ่, จังหวัด ขอนแก่น, รหัสไปรษณีย์ 40110\",\n    \"ตำบล บ้านไผ่, อำเภอ บ้านไผ่, จังหวัด ขอนแก่น, รหัสไปรษณีย์ 40110\",\n    \"ตำบล ป่าปอ, อำเภอ บ้านไผ่, จังหวัด ขอนแก่น, รหัสไปรษณีย์ 40110\"\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhamppx97%2Faddressnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhamppx97%2Faddressnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhamppx97%2Faddressnet/lists"}