Simply Zipcode Lookup 

Bookmark This Site          

      Zip code Address Lookup Software at an affordable price, PAY AS YOU GO!   

Zip code Address Lookup for Bespoke Application:


Tutorial : Using COM Object

The above video shows Zip code Lookup Software integrated into a Bespoke Application.  These examples, in Microsoft Access and Excel, are included as part of the installation.  Press Alt+F11 to view the VB code, in either of these applications.

Easy Integration:


Simply download application and install on network.  

Click here to download

Open MS Access or MS Excel examples included in installation

Add button to your Application, to activate the Zip code Address search, using the following code.  

VB.NET/Visual Basic Zip code Address Search Code:

'Open Zip code Address Search object to perform search
Dim LookupSoftware As Object
Set LookupSoftware = GetObject("", "COMAddress.Lookup")

With LookupSoftware

   ' US=Zip code search,UK=Postcode address Search
   .SearchType = "US" 

   'To prime search box from your application
   .SearchPrima = "" 

   'Set search window Title
   .SearchTitle = "Search Example" 

   'Show Address Search window
   If .SearchForCode() Then

      'Fill in returned address data
      Me.Company = .CompanyName
      Me.Line1 = .Line1
      Me.Line2 = .Line2
      Me.Line3 = .Line3
      Me.Town = .Town
      Me.State  = .CountyState
      Me.Zipcode = .PostZipCode
      Me.Country = .Country
   Else
      'Zip code Address Search cancelled
   End If
End With

Set LookupSoftware=nothing

COMAddress.Lookup is a COM object, which in the above example is being used in VB, but the same object could easily be used with VB.NET, Delphi, and another language which allows you to create and use a COM object

 

The above code will call our standard address lookup desktop application which is running in the background.   

This has the advantage that the address lookup search window can be used with other applications which the user may be using.

Get Geographic data from Zipcode:


Geographic data can be extracted, when searching for an address by Zipcode Lookup, using function SearchForCodeWithGeoData().   This will return additional attributes listed below:

Attribute Description
longitude_WGS84 The longitude, of found Zip code Address
latitude_WGS84 The latitude, of found Zip code Address
 

So the Zip code address search VB/VB.NET code would be:

If .SearchForCodeWithGeoData() Then
    Me.Company = .CompanyName
    Me.Line1 = .Line1
    Me.Line2 = .Line2
    Me.Line3 = .Line3
    Me.Town = .Town
    Me.County = .CountyState
    Me.Zipcode = .PostZipCode
    Me.Country = .Country


    'The following is the extra Geo Data
    'Note this uses an extra Lookup credit
    Me.longitude_WGS84 = .longitude_WGS84
    Me.latitude_WGS84 = .latitude_WGS84
Else
    'Search cancelled
End If

Please have a look at the "ZIPTCODE_Geo_example.mdb" example included in the installation.  Which demonstrates using Simply Zipcode Lookup, to search for an address and return the Geographical data.
Note: Calling this function will use 2 Zipcode Lookup credits.
 

Simply Zipcode Lookup Software

for simple Postcode Address Lookup Software

Simply Zipcode acknowledges all respective trademarks