Nodejs 微信开发之地理位置获取周边美食
1、wechat库git://github.com/node-webot/wechat.git
2、微信google地理位置转换
http://developer.baidu.com/map/wiki/index.php?title=webapi/guide/changeposition
3、用户发送地理位置解析并返回周边美食(吃货口水。。)
getNearFood(message.Location_Y, message.Location_X, function(data) { data = data.content; var msg = []; var imgHost = host; data.forEach(function(v, i) { if (i < 10) { var detail = v.ext.detail_info; msg.push({ title: v.name + ' ' + detail.overall_rating + '分 人均:¥' + detail.price + ' ' + v.addr, description: v.addr, picurl: imgHost + detail.image, url: '' }); } }); res.reply(msg); });
相关推荐
jieq 2020-11-09
ZZZhangbingyi 2020-08-26
haixianTV 2020-08-15
Develop 2020-06-25
郴州小程序 2020-06-13
huningjun 2020-06-12
zuoliangzhu 2020-06-11
hgzhang 2020-06-04
浪味仙 2020-06-03
powderhose 2020-06-02
cdkey 2020-05-29
戴翔的技术 2020-05-27
郴州小程序 2020-05-26
cdkey 2020-05-26
sucheng 2020-05-25
newhappy 2020-05-16
cbao 2020-05-12
cbao 2020-04-26
草根工程师 2020-03-27