To get a "Postzon" Geographical Data address from our XML Web Service we do the following:
The distance between two postcodes can be returned. Simply call with Postcode and “Home postcode” provided in the parameters. Our service will then return the distance in km. So approximate charges could be applied to a customer based on the straight line distance.
This is the main use of PostZon data. Simply call with the target Postcode and the PostZon data service will return the Longitude and Latitude. Ideal for mapping and calculating distances.
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 Longitude and Latitude of a Town, simply provide the Town name + “,SPACE“ + County in the postcode field. The Longitude and Latitude will then be returned. It is suggested that the town list is displayed using a AJAX search box.
To get a "Postzon" Geographical Data, including the distance between two postcodes, from our XML 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 josn /XMLservice/XMLSearchForPostZonData.aspx to get PostZon record. 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 (in Km) from Home Postcode, Longitude and Latitude.
/XMLservice/XMLSearchForPostZonData.aspx
[Download town list]
More information on PostZon data, including detail information about the data returned.
Call XML web service with your data key, which is e-mail to you when you open an account, and postcode.
Web Service www.simplylookupadmin.co.uk//XMLservice/XMLSearchForPostZonData.aspx?datakey=Your Data Key&postcode=pe132ql&homepostcode=BS20 6EL
www.simplylookupadmin.co.uk//XMLservice/XMLSearchForPostZonData.aspx?datakey=Your Data Key&postcode=pe132ql&homepostcode=BS20 6EL
Returns XML
If address returned then found = 1, else found = 0,error in errormessage
found = 1
found = 0
errormessage
errormessage should be displayed if populated
Note: The pz_geodistancetohomepostcode element contains the distance between:
pz_geodistancetohomepostcode
Expressed in the parameters. If the optional &homepostcode parameter is omitted then this will be 0.
&homepostcode
Final step is to test, to enable easy testing please use our special test postcodes.
This type of license returns:
More infromation on returned Geographic data