All parameters must be in lower case
Element : “data”:
www.simplylookupadmin.co.uk/xmlservice/XMLGetAddressRecord.aspx?datakey=xxxx &id=11570840_0E&version=2
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <!DOCTYPE data [ errormessage,record)> <!ELEMENT credits_display_text (#PCDATA)> <!ELEMENT accountadminpage (#PCDATA)>
<!ELEMENT errormessage (#PCDATA)> county, postcode, country, rawpostcode, deliverypointsuffix, nohouseholds, smallorg, pobox, mailsortcode, udprn, unique, spare )> <!ELEMENT id (#PCDATA)> <!ELEMENT organisation (#PCDATA)> <!ELEMENT line1 (#PCDATA)> <!ELEMENT line2 (#PCDATA)> <!ELEMENT line3 (#PCDATA)> <!ELEMENT town (#PCDATA)> <!ELEMENT county (#PCDATA)> <!ELEMENT postcode (#PCDATA)> <!ELEMENT country (#PCDATA)> <!ELEMENT rawpostcode (#PCDATA)> <!ELEMENT deliverypointsuffix (#PCDATA)> <!ELEMENT nohouseholds (#PCDATA)> <!ELEMENT smallorg (#PCDATA)> <!ELEMENT pobox (#PCDATA)> <!ELEMENT mailsortcode (#PCDATA)>]>
<!ELEMENT udprn (#PCDATA)>
<!ELEMENT spare (#PCDATA)>
<organisation>Comtek</organisation> <mailsortcode>18962</mailsortcode> <udprn>19147292</udprn> <unique>44</unique>
<spare>44,,Victoria Road</spare>
If address returned then <found>=1, else <found>=0,error in <errormessage>
PHP examples can be found in "PHP Core Code" directory which show how to use this HTTP/XML Web Service. [Download examples]
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Name |
Description |
|
datakey |
Datakey, which is available when account has been created, under the “DataKey” tab of the online account administrator page. |
|
username |
Only needed if for internal postcode address use |
| version | Set 2, this allows us to change XML structure without effecting you software |
|
postcode |
Postcode to search for |
All parameters must be in lower case
Returns:
|
Name |
Description |
|
data |
Data regarding the status of the account |
|
record |
Address fields. Some fields may be blank. |
Example:
www.simplylookupadmin.co.uk/xmlservice/XMLSearchForThoroughfareAddress.aspx
?datakey=xxxx&postcode=pe132ql&username=administrator&version=2
Returns:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<!DOCTYPE data [
<!ELEMENT data(found,credits_ display_text,
accountadminpage,
errormessage,record)>
<!ELEMENT found (#PCDATA)>
<!ELEMENT credits_display_text (#PCDATA)>
<!ELEMENT accountadminpage (#PCDATA)>
<!ELEMENT errormessage (#PCDATA)>
<!ELEMENT record (line1,line2,line3,town,county,postcode,
country, rawpostcode, mailsortcode, spare)>
<!ELEMENT line1 (#PCDATA)>
<!ELEMENT line2 (#PCDATA)>
<!ELEMENT line3 (#PCDATA)>
<!ELEMENT town (#PCDATA)>
<!ELEMENT county (#PCDATA)>
<!ELEMENT postcode (#PCDATA)>
<!ELEMENT country (#PCDATA)>
<!ELEMENT rawpostcode (#PCDATA)>
<!ELEMENT mailsortcode (#PCDATA)>
<!ELEMENT spare (#PCDATA)>
]>
<errormessage></errormessage>
<credits_display_text>Evaluation expires 28 Jul 2010</credits_display_text>
<accountadminpage>https://www.xxx...</accountadminpage>
<errormessage></errormessage>
<record>
<line1>Vicrotia Rd</line1>
<line2></line2>
<line3></line3>
<town>Wisbech</town>
<county>Cambridgeshire</county>
<postcode>PE13 2QL</postcode>
<country>England</country>
<rawpostcode>PE132QL</rawpostcode>
<mailsortcode>1033</mailsortcode>
<spare></spare>
</record>
</data>
If address returned then <found>=1, else <found>=0,error in <errormessage>
PHP examples can be found in "PHP Core Code" directory which show how to use this HTTP/XML Web Service. [Download examples]
Get PostZon Data
from Postcode Search
XMLService/XMLSearchForPostZonData.aspx
This call will retrieve the PostZon Data for a given Postcode, OSRef, Longtitude/Latitude or by Town. This PostZon data is collected from many different source by the Royal mail. The most useful information is Distance from Home Postcode, Longitude and Latitude.
[What
is Full, Thoroughfare
and PostZon Data?]
Parameters:
|
Name |
Description |
|
datakey |
Datakey, which is available when account has been created, under the “DataKey” tab of the online account administrator page. |
|
username |
Only needed if for internal postcode address use |
|
postcode |
Postcode to search for To get the PostZon record by OSRef, simply set postcode to the OSRef.
To get the PostZon record by Longtitude/Latitude, (closest within 10Km) set postcode to the "Longtitude|Latitude" (separated by |). The Postcode found will be returned in pz_postcode.
To get the
|
| version | Set 1, this allows us to change XML structure without effecting you software |
| homepostcode | To calculate the distance to another postcode, supply the HOME postcode here, this is optional |
All parameters must be in lower case
Returns:
|
Name |
Description |
|
data |
Data regarding the status of the account |
|
record |
Address information |
Element : “record” PostZon Data:
|
Name |
Description |
| pz_postcode | Postcode in the PostZon record |
| pz_found |
Found Yes or No If no all data is null |
|
pz_latitude_wgs84 |
Latitude This equals zero if not co-ordinates are available, see extra notes below |
|
pz_longitude_wgs84 |
Longitude |
|
pz_geodistancetohomepostcode |
Distance from HOME postcode in Kilometres -1 = Error |
|
pz_introductiondate |
Date introduced to file |
|
pz_gridrefeast |
Ordnance Survey 100m Easting and Northing measurements that refer to the distance east and north from a fixed point just South West of the Isles of Scilly. They indicate the mean centre point of a Postcode to 100m. |
|
pz_gridrefnorth |
Ordnance Survey 100m Easting and Northing measurements that refer to the distance east and north from a fixed point just South West of the Isles of Scilly. They indicate the mean centre point of a Postcode to 100m. |
|
pz_county |
Administrative and Local Health Authority codes used by the office of national statisics (2 Digits) Description is after the "," |
|
pz_district |
Administrative and Local Health Authority codes used by the office of national statisics (2 Digits) Description is after the "," |
|
pz_ward |
Local Authority Ward Codes in England and Wales are comprised of six characters - the first two digits represent the county, the next two alphabetic characters identify the Local Authority and the last two characters represent the electoral ward of the Postcode. Unitary Authorities in England, Wales and Scotland are four-character fields represented by the Local Authority and the Ward. In Northern Ireland, the 6 characters are made up of 95 plus a letter from A - Z followed by a space and the electoral Ward. Description is after the "," |
|
pz_usertype |
0=Small User, 1=Large User Description is after the "," |
|
pz_gridstatus |
Status of grid
co-ordinates. Latitude Description is after the "," |
|
pz_country |
064="England" Description is after the "," |
|
pz_wardstatus |
Description is after the "," |
|
pz_nhs_code |
A three character code which identifies the Health Authority or board responsible for funding patient care within each Postcode. Description is after the "," |
|
pz_nhs_region |
NHS
Codes Description is after the "," |
|
pz_osreference |
OS Reference. e.g PE132QL ="TF4630009100" This is our national coordinate system for topographic mapping. It is used for Ordnance Survey mapping at all scales, and for many private topographic surveys. The OSGB36 part of
the name refers to the geodetic datum (system of latitude and
longitude) used, and the National Grid part refers to the map
projection and grid referencing convention for eastings and
northings |
|
pz_wardstatus |
|
|
pz_mailsort |
Is a unique 5-digit numeric codes used internally by Royal Mail to route mailbags. They are also used by external customers with Mailsort contracts, which is why they are present in the data. |