|
|||||||||||||||||||
|
|||||||||||||||||||
|
|
|||||||||||||||||||
|
If you require web integration, we strongly recommend you look at the PHP/.NET Web integration, which will run on most servers. It is quick and easy to add Full Address Postcode search lookup to any web page. It uses AJAX technology to smoothly integrate Postcode Lookup into your Web site.
|
|||||||||||||||||||
WSDL SpecificationThe following URL, gives your Web Service Discovery Tool (DISCO) the SOAP specification (WSDL) of the our the web service we provide:
|
|||||||||||||||||||
|
Click here for the SOAP Web Service Specification
|
|||||||||||||||||||
Functions Available:
|
|||||||||||||||||||
Easy Integration using .NET Web Service: |
|||||||||||||||||||
|
Open an on-line account, to get a Data Key |
|||||||||||||||||||
|
Simply create a Web Reference to http://www.simplylookupadmin.co.uk/WebService.asmx within SOAP compatible programming language or .NET project |
|||||||||||||||||||
|
Simply use the example code to integrate a Postcode Lookup service into your .NET Application
|
|||||||||||||||||||
|
|||||||||||||||||||
The following example calls our server to retrieve a list of address for a given postcode (or address words if using our Web Based data, more info). These address are then displayed in a list box for user selection, with line ID, then the full address is finally retrieved from our server in the next step. An example of this is included in the Example Downloads file, plus a Thoroughfare version, where the user simply searches for an address and provides the building name/number.
'Search for full Postcode or other address fields Me.ListView1.Items.Clear()Dim PostcodeSearch As New PostcodeWebService.WebService Dim SearchPrima As New PL_SearchPrimaRecord Dim AddressesDataReturned As New PL_AddressesDataReturnedRecord'Set search criteria, either full Postcode or Two other address fields With SearchPrima .Postcode = Me.InpPostcode.Text End With 'Do Search, on Postcode or two or more address fields AddressesDataReturned = PostcodeSearch.SearchForAddress( _ Me.InpDataKey.Text, _ "TestComputer", "UK", SearchPrima)
If AddressesDataReturned.SearchPerformedWithoutError Then 'Display results, no major error If AddressesDataReturned.ErrorMessage <> "" ThenMsgBox(AddressesDataReturned.ErrorMessage)
With AddressesDataReturned 'Show amount of Postocde Lookup credits left Me.Text = .CreditsStatusText'Remember the URL to buy more Postocde Lookup credits LinkToBuyMoreCredits = .BuyMoreCreditsURL Me.LinkTOBuyMore.Visible = True 'Put Address data in listview Dim x& For x = 0 To .LineCount Dim itemToAdd As ListViewItem = ListView1.Items.Add( _.Lines(x).ID, 0) itemToAdd.SubItems.Add(.Lines(x).Address) Next End WithMe.TabControl1.SelectedIndex = 1 Else 'Display error (Account stuff mostly) MsgBox(AddressesDataReturned.ErrorMessage)End If
Retrieving residential property only. To do this simply append “[” to the end of the Postcode. Retrieving commercial property only. To do this simply append “]” to the end of the Postcode.
|
|||||||||||||||||||
|
|||||||||||||||||||
This final step calls our server, with the AddressID, to retrieve the Full Address.
'Get ID from Listbox in hidden column 0 Dim AddressID As String = ListView1.Items(ListView1.SelectedItems.Item(0).Index).SubItems(0).Text Dim PostcodeSearch As New PostcodeWebService.WebService Dim Address As PL_AddressRecord'Ask for Address by ID Address = PostcodeSearch.GetAddressRecord(Me.InpDataKey.Text, _ "TestComputer", "UK", AddressID)
Me.TabControl1.SelectedIndex = 2
If Address.AddressRecordGotWithoutError Then 'Display results If Address.ErrorMessage <> "" Then MsgBox(Address.ErrorMessage)
'Process the Address to text field Dim AddressText As String With Address AddressText = "Company:" & .CompanyName & vbCrLfAddressText += "Line1:" & .Line1 & vbCrLf AddressText += "Line2:" & .Line2 & vbCrLf AddressText += "Line3:" & .Line3 & vbCrLf AddressText += "Town:" & .Town & vbCrLf AddressText += "Postcode:" & .PostZipcode & vbCrLf AddressText += "Country:" & .Country & vbCrLf
End With Me.TxtAddress.Text = AddressText Else 'Display error (Account stuff mostly, i.e. No License) MsgBox(Address.ErrorMessage)End If
|
|||||||||||||||||||
|
|||||||||||||||||||
General Information:
|
|||||||||||||||||||
|
Name |
Description |
| id | Is only used for our internal use |
|
deliverypointsuffix |
This code can be added to the postcode to give a unique reference to each Delivery Point (letterbox) in a Postcode. Although the UDPRN number is a better source of unique ID. |
|
nohouseholds |
Number of house holds at this postcode address |
|
smallorg |
Y = Small Organisation |
|
mailsortcode |
The Royal Mail offer discount if mail is sorted by this code |
|
udprn |
is a unique 8 digit code assigned to each addressable property (Delivery Point). |
|
unique |
gives the unique portion of the address record, in the above example "44". See Notes |
|
spare |
Contains "|" separated data Property No, Property Name, Street Name |
PAF PostZon Data:
Public UK_IntroductionDate As String
Public UK_OS_grid_east As String
Public UK_OS_grid_north As String
Public UK_county As String
Public UK_district As String
Public UK_ward As String
Public UK_gridstatus As String
Public UK_country As String
Public UK_wardstatus As String
Public UK_NHS_code As String
Public UK_NHS_region As String
Public longitude_WGS84 As String
Public latitude_WGS84 As String
Public UK_os_reference As String
Public GeoDistanceToHomePostcode As String'Distance from "Home Postcode"
[More
information on PostZon Data]
Please note: Section 3.5 of the terms and conditions state: "The Customer, when using the Postcode Lookup service via Web Service, must make sure each user is identified by a unique Computer name, in each call to the Web Service." In simple language this means that each user must be identified by a unique computer name.
So "TestComputer" must be each unique Computer name, this is to ensure any future changes in the Royal Mail License agreement can be complied with.
Postcode Lookup Software © ComTek Accounts 2005
Internet Postcode Address Lookup Software
PAF Postcode Address Lookup Software for Web Sites
PAF Postcode Address Lookup Software using .NET and SOAP Services
COM Object for PAF Postcode Address Lookup Software
PAF Postcode Address Lookup Software Desktop Application Manual
Nearest Store Location functionality
PAF Postcode Address Lookup using HTTP to request XML data
PAF Postcode Address Lookup Software Troubleshooting
