提供路径规划、POI 搜索、地理编码等高德地图服务。
已存储在 /home/thor/.openclaw/settings/amap.env
bash
export AMAP_API_KEY="your_api_key"
bash
source /home/thor/.openclaw/settings/amap.env
搜索并生成带标记的地图
bash
amap-map-search "汉堡" "23.155254,113.346322" 3 1500
地址 → 坐标
bash
amap geocode --address="广州市天河区体育西路 100 号"
坐标 → 地址
bash
amap regeocode --location="113.346322,23.155254"
bash
amap driving --origin="113.346322,23.155254" --destination="113.264434,23.129018"
bash
amap walking --origin="113.346322,23.155254" --destination="113.350000,23.160000"
bash
amap transit --origin="113.346322,23.155254" --destination="113.264434,23.129018"
搜索美食
bash
amap search --keywords="美食" --location="113.346322,23.155254" --radius=1000
搜索酒店
bash
amap search --keywords="酒店" --location="113.346322,23.155254" --radius=2000
搜索加油站
bash
amap search --keywords="加油站" --location="113.346322,23.155254" --types="加油站" --radius=3000
bash
# 加载环境变量
source /home/thor/.openclaw/settings/amap.env
# 使用命令
amap driving --origin="起点坐标" --destination="终点坐标"
发送位置信息后,我会询问您想要:
bash
# 搜索附近美食
amap-search-food "113.346322,23.155254"
# 规划驾车路线
amap-drive "起点坐标" "终点坐标"
类型关键词types 代码美食美食、餐厅餐饮服务酒店酒店、宾馆住宿服务加油站加油站加油站医院医院医疗保健服务银行银行金融服务购物购物、商场购物服务景点景点、公园风景名胜
bash
# 查询地址坐标
amap geocode --address="广州塔"
# 规划从当前位置到广州塔的驾车路线
amap driving --origin="113.346322,23.155254" --destination="113.325610,23.106500"
# 搜索附近 1 公里内的美食
amap search --keywords="美食" --location="113.346322,23.155254" --radius=1000