Get Nearest Store List using HTTP/XML
This HTTP/XML service is used by our examples included in the download to get either Nearest Store List or Nearest Store List and Google Map.
The following is included for referance
HTTP/XML APICommon Parameters:
All HTTP/XML API functions have the following common parameters:
Name | Description |
---|---|
LicenseID | Your License ID (Account Number). This is given to you when you open an account with us |
ListID | 1-10, allows you to have multiple data lists. |
Password | Password to your account |
ErrorDesc | Returns any errors if they occur, other wise “” if OK |
For Trail use set to 0. ListID=1 and 2 which are List 1 and 2 on the spreadsheet. When calling these lists the DataKey, LicenseID and Password are ignored. You will NOT be able to update the data in these lists.
API Functions
This service provides the following:
Get Nearest List
http://www.simplylookupadmin.co.uk/nearest/GetNearestToPostCodeTemplate.aspx
?licenseid=0
&templateid=1
&listid=1
&password=
&datakey=YOURDATAKEY
&targetpostcode=PE132QL
&withinkm=100
&pagesize=10
&pageno=1
&typefilter=
&extraflags=
HTTP calls should only be made by server side script since they contain your password.
Returns:
If error then returns error description:
<errordesc>"Postcode not found</errordesc>
Else this calls returns the Store List data merged with template, to produce list of stores.
Get List with Google Map
The following generates a list of nearest stores and the code to display a Google map.
http://www.simplylookupadmin.co.uk/nearest/GetNearestToPostcodeMapXML.aspx
?licenseid=0
&templateid=1
&listid=1
&password=
&datakey=YourDataKey
&targetpostcode=PE132QL
&withinkm=100
&pagesize=10
&pageno=1
&typefilter=
&extraflags=
&nopins=1000
&mapkey=YourGoogleMapKey
&zoomlevel=10
&showcontrols=1
&showoverview=1
&showmaptype=1
&extraflags=
HTTP calls should only be made by server side script since they contain your password.
Returns:
If error then returns error description:
<errordesc>"Postcode not found</errordesc>
Else this call returns both the Store List data merged with template data (list of stores) and the Google map code in XML. This returned code is then simply displayed on your own page, using your own Google Map key.
See the PHP or classic ASP example, in the "Nearest Functionality" directory of our example code, to see how to use this.
Get list in XML format
The following generates a list of nearest stores and the code to display a Google map.
http://www.simplylookupadmin.co.uk/nearest/GetNearestToPostCodeXML.aspx
?licenseid=0
&templateid=1
&listid=1
&password=
&datakey=YOURDATAKEY
&targetpostcode=PE132QL
&withinkm=100
&pagesize=10
&pageno=1
&typefilter=
&extraflags=
HTTP calls should only be made by server side script since they contain your password.
Returns:
If error then returns error description:
<errordesc>"Postcode not found</errordesc>
Else this calls returns the Store List data.