饿了么平台开发API接口列表

1、查询某个位置下有那些地址信息
参数如下:
请求类型:GET
keyword: 城市/区/街道 
offset: 当前页位置
limit:每页显示多少条数据
接口:https://h5.ele.me/restapi/bgs/poi/search_poi_nearby_alipay
例如:https://h5.ele.me/restapi/bgs/poi/search_poi_nearby_alipay?keyword=广州&offset=0&limit=20

https://restapi.ele.me/bgs/poi/search_poi_nearby?keyword=wans&offset=0&limit=20&latitude=23.12908&longitude=113.264359

{
"address": "广东省广州市荔湾区芳村大道中560号",
"city": "广州市",
"city_id": 4,
"dist": 4904.306365924551,
"distance": "4.90km",
"district_adcode": "440103",
"district_id": 5620,
"geohash": "ws0e2qqw8prt",
"id": "B00140UFEI",
"koubei_district_adcode": "440103",
"koubei_prefecture_adcode": "440100",
"latitude": 23.106777,
"longitude": 113.223048,
"name": "万盛苑",
"prefecture_adcode": "440100",
"prefecture_city_name": "广州市",
"prefecture_id": 4,
"request_id": null,
"short_address": null,
"source": ""
},

可以得出这个地点与传入的经纬度的距离"distance": "4.90km",

2、查询某个在线用户的收货地址及备注
userId: 用户的ID 9位数数据 只能查看在线用户  (其实我们用循环一直用遍历9位数字一直去试,能查询当前弄个人用户elm的收获地址和手机号等...)
接口:https://h5.ele.me/restapi/member/v1/users/{ userId }/addresses
例如:https://h5.ele.me/restapi/member/v1/users/207828671/addresses


3、查询全国对应26字母相应的城市 (用户字母位置查询)返回某个城市的经度纬度为下面接口当参数作用
请求类型:GET
接口:https://shadow.elemecdn.com/lib/city-list@0.0.3/city_list.json


4、查询饿了么首页相关信息(门店/优惠/排名/快递)  //用于动态路由
请求类型:GET
latitude: 纬度
longitude:  经度
terminal: 当前需要显示的设备
接口:https://h5.ele.me/pizza/shopping/restaurants/batch_filter
例如:https://h5.ele.me/pizza/shopping/restaurants/batch_filter?latitude=28.03948&longitude=105.813359&terminal=h5


5、根据经度纬度找到当前位置的城市和外卖地址
请求类型:GET
latitude: 纬度
longitude:  经度
接口:https://h5.ele.me/restapi/bgs/poi/reverse_geo_coding
例如:https://h5.ele.me/restapi/bgs/poi/reverse_geo_coding?latitude=28.03948&longitude=105.813359

6、查询菜品类型大全 (地方菜系/面食粥点/简餐便当...)
请求类型:GET
latitude: 纬度    //必填
longitude:  经度   //必填
entry_id: 20133249  //条目ID 固定参数
erminal=h5  //当前需要显示的设备
https://h5.ele.me/restapi/shopping/v2/foods_page/sift_factors?entry_id=20133249&longitude=105.442574&latitude=28.8717&terminal=h5


 

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值