The Coach Hire system uses set locations.
<?xml version='1.0' encoding='utf-8'?> <JobFile> <appID>23423411</appID> <appSecret>9a83d44f4cc7067d20f8f2f060be3ab6848e6d23</appSecret> <username>Sandbox User</username> <getAjaxData> <getFor>Location</getFor> </getAjaxData> </JobFile>
To break this down: Let's look at each tag and what is required;
Tag | Format | Notes |
<username> | string | Name of User making request (optional) |
<getAjaxData> | N/A | This says the API is requesting some data be returned |
<getFor> | string | This value indicates the data requested is for Location |
Here the return.
Callback :
{
"code": 200,
"count": 1,
"data": [{
"place_name": " Aintree Racecourse",
"place_desc": "",
"place_addr": "",
"lat": "53.4750268",
"lng": "-2.952388",
"miles": "5",
"pre_arrival": "0",
"post_arrival": "0",
"category": "Sporting Venues"
}]
}