Thoroughfare/Street address using COM Object
Thoroughfare/Street Address Search functionality:
- Postcode is entered in software by user, to search for
- Address returned apart from House Name and Number
- User enters House Name and Number manually, unlike Full Address
Step 1 Sign up for 30 day trial
Simply use the "Sign Up for Trial" link at top right of this page to open a trial account. We will then send you a data key, which is used to identify your account, when using the following service.
Step 2 Download COM Object
The COM Object is for use with any COM complient language. It is written in Framework V2.0 so compatible with any framework from 2 upwards. It is almost identical to our COM object, but is implemented as a .NET Assembly. It is therefore easier to distribute within your .NET project, since it requires no extra files.
The Postcode Software COM Object is in the “COM Object\COM Object Files” directory of our api example code, or installed using the InstallSimplyPostcodeCOM.EXE install program found in the route of the download.
How to distribute
Simply include the “InstallSimplyPostcodeCOM.EXE” in your installation routine. This installs all files need, without any prompt for user input. Therefore can easily be activated by your own install routines. On most computers it will only install SimplyPostCodeLookup.dll into system32 directory, since all other files are bundled with MS Office, and other vb6 programs.
Include actual files in your own install
Place all required files in your own install routine, include all files in the "COM Object\COM Object Files" directory of the Programming examples.
These files are:
- "Microsoft Internet Transfer Control (MSINET.OCX)" OCX control
- Msvbvm60.dll to be in application directory
- mscomctl.ocx to be in application directory
Step 3 Creating the COM Object
Add a COM Reference to our COM object, “ISimplyPostCodeCOMClass”SimplyPostCodeLookup.dll, within your programming language.
Dim SimplyPostCodeLookup As New SimplyPostCode
Step 4 Specify the Data Key
The Data Key will have been sent to you via an e-mail when you opened the account. It is also available under the “Data Key” tab of the online admin window. For the .NET Assembly you should use the data key beginning with "I_".
Step 5 Call GetThoroughfareAddressRecord to get address from postcode
Simply call GetThoroughfareAddressRecord(Postcode) as Boolean
This type of search will get most of the address, except the house name or number. The user then must enter this information themselves.
This call can be used with Local Data or Internet based data.
Simply call with the postcode to search for.
|Postcode as string||Postcode to find.|
Returns true if address search completed and General_credits_display_text contains summary of Credits/License status. Else errors reported in General_errormessage.
Postcode Lookup Example:
This code gets the Thoroughfare/Street address information from the Royal Mail address database.
'Set Data key, to identify your account
//Set Data key, to identify your account
Step 4 Testing
Final step is to test, to enable easy testing please use our special test postcodes.
Postcode Software - COM Example Code
Simply download the example code. The code is in the "COM Object/C++ COM Object","COM Object/MS Access 2000 onwards","COM Object/MS Excel using COM", "COM Object/VB6 COM Example","COM Object/VBNET COM 2005" directory of our example downloads.
You must run InstallSimplyPostcodeCOM.EXE included in the above download.
These examples demonstrate postcode lookup software using Thoroughfare/Street Address unsing the COM object.
This type of license returns: (see example below)
- Street Name
- Country "England","Wales","Northern Ireland","Isle of Man","Channel Islands","Scotland"
- Mail sort Code