Travel advisory Daquan Interface (HTTP://WWW.HAOSERVICE.COM/DOCS/50)
1. City List
Interface information
Url:http://apis.haoservice.com/lifeservice/travel/citylist
Supported formats: JSON
HTTP request method: Get/post
demo:http://apis.haoservice.com/lifeservice/travel/citylist?key= the Appkey value you requested
Parameter description:
Name |
Type |
Must fill in |
Description |
|
Key |
String |
Is |
Application Appkey (Application Detail page query) |
|
return Result:
{
"Error_code": 0,
"Reason": "Success",
"Result": [{
"Cityid": "2",
"CityName": "Anhui",
"Provinceid": "2"
},{
"Cityid": "45",
"CityName": "Huangshan",
"Provinceid": "2"
},{
"Cityid": "42",
"CityName": "Hefei",
"Provinceid": "2"
},{
"Cityid": "51",
"CityName": "Xuancheng",
"Provinceid": "2"
}]
}
2. List of attractions
Interface information
Url:http://apis.haoservice.com/lifeservice/travel/scenery
Supported formats: JSON
HTTP request method: Get/post
demo:http://apis.haoservice.com/lifeservice/travel/scenery?key= the Appkey value you requested &pid=2&cid=45&page=1
Parameter description:
Name |
Type |
Must fill in |
Description |
Key |
String |
Is |
Application Appkey (Application Detail page query) |
Pid |
Int |
Whether |
Province ID (default = 0, national) |
Cid |
Int |
Whether |
City ID (default is 0, such as the province ID is 0, the city ID is also 0, then the country, if the province ID is not 0, then all cities in the governorate are queried) |
Page |
String |
Is |
Page n, per page 10 data returned 10 data per page (1th page by default) |
return Result:
{
"Error_code": 0,
"Reason": "Success",
"Result": [{
"title": "Huangshan",
"Grade": "AAAAA",
"Price_min": "80",
"comm_cnt": "3694",
"Cityid": "45",
"Address": "Huangshan Scenic spot in Huangshan, Anhui province",
"Sid": "5305",
"url": "Http://www.ly.com/scenery/BookSceneryTicket_5305.html",
"Imgurl": "Http://upload.17u.com/uploadfile/scenerypic_common/160_120/2014/06/03/2/201406031912026124241.jpg"
},
......
{
"title": "Emerald Valley",
"Grade": "AAAA",
"Price_min": "46",
"comm_cnt": "1307",
"Cityid": "45",
"Address": "Huangshan Huangshan Scenic Area Emerald Valley",
"Sid": "178",
"url": "Http://www.ly.com/scenery/BookSceneryTicket_178.html",
"Imgurl": "Http://upload.17u.com/uploadfile/scenerypic_common/160_120/2014/09/24/2/201409241505363167062.jpg"
}]
}
3. Attraction details
Interface information
Url:http://apis.haoservice.com/lifeservice/travel/getscenery
Supported formats: JSON
HTTP request method: Get/post
demo:http://apis.haoservice.com/lifeservice/travel/getscenery?key= the Appkey value you requested &sid=31365
Parameter description:
Name |
Type |
Must fill in |
Description |
Key |
String |
Is |
Application Appkey (Application Detail page query) |
Sid |
String |
Is |
Attraction ID |
return Result:
{
"Error_code": 0,
"Reason": "Success",
"Result": [{
"title": "Play scenic spots Happy Valley Tianfu Shu Yun | reason 1 by the more than 20 years of experience in performing arts, national level choreographer Lin Shusen director directed ...",
"Referral": "Sichuan Shu first show large original music dance poem painting" Tianfu Shu Yun "is a huge amount of creative drama created by the Chengdu Overseas Chinese city, and at the time of every night in ...",
"img": "Http://img.17u.com/jqadminpic/uploadpic/old/2013/5/7/2013050714092324876.jpg"
},{
"title": "Play scenic spots Tianfu Shu Yun Chapter Introduction",
"Referral": "Tianfu Shu Yun" The entire performance will sound, light, electricity, art, stunts, stage, dance, acrobatics, martial arts, drama and so on, ... ",
"img": "Http://img.17u.com/jqadminpic/uploadpic/old/2013/5/7/2013050714120126270.jpg"
},{
......
},{
"title": "",
"Referral": "Book Ink painting Month" Between the book ink, and how much joys and sorrows, Su Dongpo to the moon, pinned all thoughts such as song-I wish People long, Trinidad and reunions. ",
"img": "Http://img.17u.com/jqadminpic/uploadpic/old/2013/11/7/2013110713522498520.jpg"
}]
}
4. Attraction Ticket Information
Interface information
Url:http://apis.haoservice.com/lifeservice/travel/ticketinfo
Supported formats: JSON
HTTP request method: Get/post
demo:http://apis.haoservice.com/lifeservice/travel/ticketinfo?key= the Appkey value you requested &sid=31365
Parameter description:
Name |
Type |
Must fill in |
Description |
Key |
String |
Is |
Application Appkey (Application Detail page query) |
Sid |
String |
Is |
Attraction ID |
return Result:
{
"Error_code": 0,
"Reason": "Success",
"Result": [{
"Name": "Wan Sang Ti" Dinosaur Park Halloween Park Adult ticket (10.1-11.11) ",
"PRICE_MK": "100",
"Price": "90"
},{
......
},{
"Name": "Dinosaur Park Family Ticket + theme Package",
"PRICE_MK": "665",
"Price": "568
}]
}
5. Hotel List
Interface information
Url:http://apis.haoservice.com/lifeservice/travel/hotellist
Supported formats: JSON
HTTP request method: Get/post
demo:http://apis.haoservice.com/lifeservice/travel/hotellist?key= the Appkey value you requested &cityid=37
Parameter description:
Name |
Type |
Must fill in |
Description |
Key |
String |
Is |
Application Appkey (Application Detail page query) |
Cityid |
String |
Is |
City ID |
Page |
Int |
Is |
Page N (default = 1, 60 per page) |
return Result:
{
"Error_code": 0,
"Reason": "Success",
"Result": [{
"id": "1454",
"Name": "Anhui Water Conservancy Jinjiang Grand Hotel",
"ClassName": "Five-Star",
"Intro": "Anhui Water Conservancy Jinjiang Hotel is located in Bangbu High-tech development zone, is located in the City administrative center and the Future Commercial Trade Finance Center connection, and the highway, the port is about 5 kilometers apart, the traffic is in all directions. ",
"Dpnum": "22",
"Lat": "32.923502",
"Lon": "117.345315",
"Address": "No. 5183 Donghai Avenue, Bengbu",
"Largepic": "Http://Upload.17u.cn/hotel/large/2014/8/10/bb7fbe6a7ff24a4a81dc400a34a2a09a.jpg",
"Cityid": "37",
"url": "Http://www.ly.com/HotelInfo-1454.html",
"Manyidu": "73%"
},{
......
},{
"id": "55114",
"Name": "Bengbu International Hotel",
"ClassName": "Comfort Type",
"Intro": "Bengbu an international hotel is located in Bangbu Lake area, adjacent to the Huai River Shore, west of the bustling business district, shopping, leisure is very convenient. ",
"Dpnum": "41",
"Lat": "32.958392",
"Lon": "117.377291",
"Address": "No. No. 363 Chang Huai Road",
"Largepic": "Http://Upload.17u.cn/hotel/large/2014/8/10/5823942bd3ee48e1a57f351444af701f.jpg",
"Cityid": "37",
"url": "Http://www.ly.com/HotelInfo-55114.html",
"Manyidu": "88%"
}]
}
6. Hotel Details
Interface information
Url:http://apis.haoservice.com/lifeservice/travel/gethotel
Supported formats: JSON
HTTP request method: Get/post
demo:http://apis.haoservice.com/lifeservice/travel/gethotel?key= the Appkey value you requested &hid=17192
Parameter description:
Name |
Type |
Must fill in |
Description |
Key |
String |
Is |
Application Appkey (Application Detail page query) |
Hid |
String |
Is |
Hotel ID |
return Result:
{
"Error_code": 0,
"Reason": "Success",
"Result": {
"Intro": "Bengbu New Century (international) hotel is located in the mussel ...",
"Basic": "2005 2012 Years of renovation",
"Change": "Breakfast buffet 25 Yuan",
"Serve": "Meeting elevator wake-up service laundry service full-time luggage ...",
"Roomfacility": "All rooms hair dryer independent ...",
"Hotelfacilities": "Catering to the six-happy pasta snack ...",
"FOODFUNF": "Tea Room restaurant KTV",
"Entertainment": "Sauna fitness room table tennis room chess card room Barber Beauty Center",
"Trafficelist": [
{
"Traffic": "Downtown area" is a short walk from the hotel.
},
......
]
}
}
7. Hotel room Information
Interface information
Url:http://apis.haoservice.com/lifeservice/travel/hotel
Supported formats: JSON
HTTP request method: Get/post
demo:http://apis.haoservice.com/lifeservice/travel/hotel?key= the Appkey value you requested &hid=4816
Parameter description:
{
"Error_code": 0,
"Reason": "Success",
"Result": [{
"Roomname": "Garden Room",
"Area": "32",
"Bed": "King-size bed or twin beds",
"Policyinfo": [{
"PolicyName": "",
"Price": "300",
"Rebate": "36",
"Breakfast": "None",
"Giftsdescription": ""
}]},
........
{
"Roomname": "Executive Suite",
"Area": "64",
"Bed": "King-size bed or twin beds",
"Policyinfo": [{
"PolicyName": "(including breakfast)",
"Price": "2645",
"Rebate": "0",
"Breakfast": "Single Copy",
"Giftsdescription": ""
}]},{
"Roomname": "Cotton Tree Suite",
"Area": "96",
"Bed": "King-size bed or twin beds",
"Policyinfo": [{
"PolicyName": "",
"Price": "3220",
"Rebate": "0",
"Breakfast": "Double Copy",
"Giftsdescription": "Book your stay per night during this period: 1) complimentary afternoon tea and cocktails served at the Executive Lounge (Serving hours: 5 o'clock in the afternoon to 9 o'clock)"
}]
}]
}
Travel advisory Daquan Interface