高德地图(node-red-contrib-gaode)

node-red-contrib-gaode

节点配置

首先需要到申请高德地图的申请Web服务API类型KEY](https://lbs.amap.com/dev/index),然后修改高德的配置信息.其次需要pushbear相关信息配置

{"id":"8585109.3497af","type":"tab","label":"流程6","disabled":false,"info":""},{"id":"49aa9061.dfd1b","type":"gaode","z":"8585109.3497af","server":"","longitude":"116.481499","latitude":"39.990475","x":301,"y":281,"wires":"e726f502.750e98"]]},{"id":"ee047b63.733cf8","type":"inject","z":"8585109.3497af","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":145,"y":279,"wires":"49aa9061.dfd1b"]]},{"id":"e726f502.750e98","type":"switch","z":"8585109.3497af","name":"获取信息成功","property":"payload.status","propertyType":"msg","rules":{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":468,"y":280,"wires":"2390c761.459618"]]},{"id":"252f6277.007bde","type":"pushbear","z":"8585109.3497af","server":"","title":"位置提醒","content":"","x":887,"y":188,"wires":]]},{"id":"484c2992.0e79a8","type":"debug","z":"8585109.3497af","name":"调式节点","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":569,"y":92,"wires":]},{"id":"2390c761.459618","type":"function","z":"8585109.3497af","name":"pushbear信息整理","func":"\nvar data = \n`你现在的位置是: ${msg.payload.location}  \n!图片位置](${msg.payload.image})  \n${new Date().toLocaleString()}\n`\nmsg.payload =data\nreturn msg;","outputs":1,"noerr":0,"x":666,"y":191,"wires":"252f6277.007bde","484c2992.0e79a8"]]}]

展示效果如下:

太好了,非常感谢呢。另外大神啊,这个地图可以缩放吗?太小了。