简要描述:
- 酒店列表
请求域名:
- http://xx.com
请求URL:
POST/&route=plugin.hotel-supply.frontend.home.index
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
lat | 是 | int | 经度 |
lng | 是 | int | 纬度 |
search[province] | 是 | string | 省名称 |
search[city] | 是 | string | 市名称 |
search[name] | 否 | sting | 酒店名称 |
search[level] | 否 | int | 酒店类型 |
search[sort] | 否 | int | 排序: desc:远到近 asc:近到远 |
酒店类型: 1快捷商务2连锁酒店3精品民宿4精品公寓 5精品酒店 6星级酒店
返回示例:
正确时返回:
{
"result": 1,
"msg": "list",
"data": {
"total": 12,
"per_page": 3,
"current_page": 1,
"last_page": 4,
"next_page_url": "http://localhost/addons/yun_shop/api.php?page=2",
"prev_page_url": null,
"from": 1,
"to": 3,
"data": [
{
"id": 5,
"hotel_id": 401,
"name": "易佰上海外高桥自贸区店",
"shortname": "易佰上海外高桥自贸区店",
"tel": "4007050580",
"logourl": "",
"provice": "上海市",
"city": "上海市",
"area": "浦东新区",
"address": "上海市浦东新区赵高公路1576号",
"other": "PARKING,WIFI,XICANG,RESHUI,XIYI,JIAOXING,SHANGWANG,XINGLI",
"level": 0,
"is_manfang": 0,
"longitude": "121.644837",
"latitude": "31.305244",
"distance": 16363,
"level_name": "其他",
"other_name": "停车位,WIFI,XICANG,热水,洗衣,叫醒,上网,行李"
},
{
"id": 19,
"hotel_id": 425,
"name": "易佰上海江湾一店",
"shortname": "易佰上海江湾一店",
"tel": "4007050580",
"logourl": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/3/4/2/2/thumb_59dc3ce90e8b2.jpg",
"provice": "上海市",
"city": "上海市",
"area": "虹口区",
"address": "上海市虹口区新市南路585号(车站南路新市南路路口)",
"other": "PARKING,WIFI,XICANG,RESHUI,XIYI,JIAOXING,SHANGWANG,XINGLI",
"level": 2,
"is_manfang": 0,
"longitude": "121.487673",
"latitude": "31.301071",
"distance": 7663,
"level_name": "连锁酒店",
"other_name": "停车位,WIFI,XICANG,热水,洗衣,叫醒,上网,行李"
},
{
"id": 20,
"hotel_id": 426,
"name": "易佰上海淞滨地铁站店",
"shortname": "易佰上海淞滨地铁站店",
"tel": "4007050580",
"logourl": "http://lc.4007050580.com/uploads/q/qmuiko1431678728/4/5/c/9/thumb_59dc3dc8be7f1.jpg",
"provice": "上海市",
"city": "上海市",
"area": "宝山区",
"address": "上海市宝山区淞兴西路168号(3号地铁淞滨路站一号口向左200米)",
"other": "WIFI,RESHUI,JIAOXING,SHANGWANG,XINGLI",
"level": 2,
"is_manfang": 0,
"longitude": "121.496698",
"latitude": "31.374262",
"distance": 793,
"level_name": "连锁酒店",
"other_name": "WIFI,热水,叫醒,上网,行李"
}
]
}
}
错误时返回:
{
"result": 0,
"msg": "未检测到数据!",
"data": []
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
hotel_id | int | 酒店id |
name | string | 酒店名称 |
tel | string | 酒店电话 |
logourl | string | 酒店图片 |
address | string | 酒店地址 |
distance | string | 距离,单位:米 |
level_name | string | 酒店类型 |
other_name | string | 酒店提供服务 |
is_manfang | int | 酒店是否满房 1:是 0:否 |