Street Address Search functionality:
To get a Street address from our JSON/JSONP Web Service we do the following:
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.
Call JSONService/JSONSearchForThoroughfareAddress.aspx to get address record. This call will retrieve the Street Address Data, from the Royal Mail Street PAF database, for a given Postcode. The Street Address is a cut down version of the Full Address, basically it does not contain the Building name or number. Therefore the programmer should allow the user to enter the House Name/Number for the address. These licenses are cheaper than Full Postcode data.
JSONService/JSONSearchForThoroughfareAddress.aspx
cross=true
Call JSON web service with your data key, which is e-mailed to you when you open an account, and postcode. The data key identifies your account and licenses.
Web Service www.simplylookupadmin.co.uk/JSONService/JSONSearchForThoroughfareAddress.aspx?datakey=Your Data Key&postcode=pe132ql
www.simplylookupadmin.co.uk/JSONService/JSONSearchForThoroughfareAddress.aspx?datakey=Your Data Key&postcode=pe132ql
Returns json { "found":"1", "credits_display_text":"Evaluation expires 3 Apr 2011", "accountadminpage":"https://www.simplylookupadmin.co.uk/WebAccountLogin.aspx? doid=1&coid=3333305462&Pay=yes", "errormessage":"", "line1":"Victoria Road", "line2":"", "line3":"", "town":"Wisbech", "county":"Cambridgeshire", "postcode":"PE13 2QL", "country":"England", "rawpostcode":"PE132QL", "mailsortcode":"66144" }
{ "found":"1", "credits_display_text":"Evaluation expires 3 Apr 2011", "accountadminpage":"https://www.simplylookupadmin.co.uk/WebAccountLogin.aspx? doid=1&coid=3333305462&Pay=yes", "errormessage":"", "line1":"Victoria Road", "line2":"", "line3":"", "town":"Wisbech", "county":"Cambridgeshire", "postcode":"PE13 2QL", "country":"England", "rawpostcode":"PE132QL", "mailsortcode":"66144" }
If address returned then found = 1, else found = 0,error in errormessage
found = 1
found = 0
errormessage
errormessage should be displayed if populated
It is a requirement of the royal mail that if postcode lookup software is used by an employee of a company, then the user must be uniquely identified so we can apply a user count.
Therefore the URL must contain a User ID:
Web Service www.simplylookupadmin.co.uk/JSONService/JSONSearchForThoroughfareAddress.aspx?datakey=Your Data Key&postcode=pe132ql&username=UserID
www.simplylookupadmin.co.uk/JSONService/JSONSearchForThoroughfareAddress.aspx?datakey=Your Data Key&postcode=pe132ql&username=UserID
This will be the datakey beginning with "I"
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 if used internally”. In simple language this means that each user must be identified by a unique computer name, in username parameter, if used by a company employee.
Final step is to test, to enable easy testing please use our special test postcodes.
This type of license returns: (see example below)