Click here to Skip to main content
15,881,248 members
Articles / Programming Languages / SQL

ZIP Code Utility

Rate me:
Please Sign up or sign in to vote.
4.98/5 (20 votes)
2 Jan 2005CPOL3 min read 177K   3.7K   88  
This article provides an easy method to lookup a U.S. City/State by ZIP Code, or one or more ZIP Codes by City/State. It also describes a method to calculate the distance between two ZIP Codes and find all other ZIP Codes within a radius of X miles of a specified ZIP Code.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
	<appSettings>
		<!--
			ZIP Code Provider Type
				Database type.  Can be one of the following:
					* Access
					* MSSQL (not yet implemented)
					* MySQL (not yet implemented)
		-->
		<add key="ZipCodeProviderType" value="Access" />
		<add key="ZipCodeConnString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Dev\SagaraSoftware\ZipCodeUtil\zipbase.mdb" />
	</appSettings>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Sagara Software, Inc.
United States United States
Jon is a senior software developer who loves using .NET to solve problems.

When he's not fooling around with computers or reading, he's busy spending time with his super wife, Kelly, and his three boys. He also likes to take his mountain bike for a spin.

Visit my blog

Comments and Discussions