Soenneker.ZipCodes.Lookup 4.0.108

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.ZipCodes.Lookup --version 4.0.108
                    
NuGet\Install-Package Soenneker.ZipCodes.Lookup -Version 4.0.108
                    
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="Soenneker.ZipCodes.Lookup" Version="4.0.108" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.ZipCodes.Lookup" Version="4.0.108" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.ZipCodes.Lookup" />
                    
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 Soenneker.ZipCodes.Lookup --version 4.0.108
                    
#r "nuget: Soenneker.ZipCodes.Lookup, 4.0.108"
                    
#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 Soenneker.ZipCodes.Lookup@4.0.108
                    
#: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=Soenneker.ZipCodes.Lookup&version=4.0.108
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.ZipCodes.Lookup&version=4.0.108
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.ZipCodes.Lookup

Fast ZipCode Resolution for .NET.

Install

dotnet add package Soenneker.ZipCodes.Lookup

Quick start

using Soenneker.ZipCodes.Lookup.Registrars;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
var result = services.AddZipCodeLookupUtilAsSingleton();

Adds IZipCodeLookupUtil as a singleton service.

What you get

  • IZipCodeLookupUtil — Fast ZipCode Resolution for .NET.
  • ZipCodeLookupUtilRegistrar — Fast ZipCode Resolution for .NET.
  • ZipCodeCoordinates — Latitude and longitude coordinates for a ZIP code.
  • ZipCodeInfo — A ZIP code geography record.

API at a glance

API What it does Result / important behavior
IZipCodeLookupUtil.GetAll(cancellationToken) Gets all known ZIP code records. The matching records as a materialized collection.
IZipCodeLookupUtil.Get(zipCode, cancellationToken) Gets the ZIP code record, if present. A task whose result is the requested zip Code Info.
IZipCodeLookupUtil.Exists(zipCode, cancellationToken) Gets whether a ZIP code exists in the lookup data. Returns true when at least one matching document exists; otherwise, false.
IZipCodeLookupUtil.GetCity(zipCode, cancellationToken) Gets the city for a ZIP code, if present. A task whose result is the text returned by get City.
IZipCodeLookupUtil.GetState(zipCode, cancellationToken) Gets the state or territory abbreviation for a ZIP code, if present. A task whose result is the text returned by get State.
IZipCodeLookupUtil.GetLatitude(zipCode, cancellationToken) Gets the latitude for a ZIP code, if present. A task whose result is the requested value.
IZipCodeLookupUtil.GetLongitude(zipCode, cancellationToken) Gets the longitude for a ZIP code, if present. A task whose result is the requested value.
IZipCodeLookupUtil.GetLatitudeLongitude(zipCode, cancellationToken) Gets the latitude and longitude for a ZIP code, if present. A task whose result is the requested (double Latitude, double Longitude).
IZipCodeLookupUtil.GetCoordinates(zipCode, cancellationToken) Attempts to get the latitude and longitude for a ZIP code. A task whose result is the requested zip Code Coordinates.
IZipCodeLookupUtil.GetTimeZoneId(zipCode, cancellationToken) Gets the IANA time zone identifier for a ZIP code, if present. A task whose result is the text returned by get Time Zone ID.
IZipCodeLookupUtil.GetByState(state, cancellationToken) Gets all ZIP code records in a state or territory. The matching records as a materialized collection.
IZipCodeLookupUtil.GetByCity(city, cancellationToken) Gets all ZIP code records for a city. The matching records as a materialized collection.
IZipCodeLookupUtil.GetByCityAndState(city, state, cancellationToken) Gets all ZIP code records for a city and state or territory. The matching records as a materialized collection.
ZipCodeLookupUtilRegistrar.AddZipCodeLookupUtilAsSingleton(services) Adds IZipCodeLookupUtil as a singleton service. The same service collection, so additional registrations can be chained.
ZipCodeLookupUtilRegistrar.AddZipCodeLookupUtilAsScoped(services) Adds IZipCodeLookupUtil as a scoped service. The same service collection, so additional registrations can be chained.

Practical notes

  • Cancellation stops pending work; it does not undo work that has already completed.
Product Compatible and additional computed target framework versions.
.NET 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
4.0.110 34 9/1/2026
4.0.109 28 9/1/2026
4.0.108 41 8/31/2026
4.0.107 38 8/31/2026
4.0.106 39 8/31/2026
4.0.105 42 8/31/2026
4.0.104 60 8/30/2026
4.0.103 46 8/30/2026
4.0.102 48 8/29/2026
4.0.101 53 8/29/2026
4.0.100 54 8/28/2026
4.0.99 99 8/26/2026
4.0.98 73 8/26/2026
4.0.97 82 8/26/2026
4.0.96 90 8/25/2026
4.0.95 108 8/22/2026
4.0.94 86 8/22/2026
4.0.93 93 8/22/2026
4.0.92 108 8/21/2026
4.0.91 102 8/19/2026
Loading failed