amap

高德地图 API 调用工具,返回原始 JSON 数据。Use when users ask about 天气、地址、坐标、周边、路线、导航、打车、行程 in China. Commands: weather, geo, regeo, search, around, detail, route, distance, ip, navi, taxi, trip.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "amap" with this command: npx skills add fangtian-amap

高德地图技能

直接调用高德 REST API,返回完整 JSON 响应。支持 15 个 API,共 12 个命令。

安装

cp amap ~/.local/bin/
chmod +x ~/.local/bin/amap

环境变量

export AMAP_API_KEY="your-api-key"

获取 API Key: https://console.amap.com/dev/key/app (选择 Web服务)

命令列表(12个)

位置服务

命令说明示例
weather天气查询amap weather 武汉
geo地址转坐标amap geo 黄鹤楼 武汉
regeo坐标转地址amap regeo 114.3,30.6
ipIP定位amap ip 220.181.38.148

搜索服务

命令说明示例
search搜索地点amap search 黄鹤楼 武汉
around周边搜索amap around 学校 114.3,30.6 3000
detailPOI详情amap detail B001B0I4K0

天气服务

命令说明示例
weather天气查询amap weather 武汉

路线规划

命令说明示例
route路线规划amap route 114.3,30.6 114.4,30.7 driving
distance距离测量amap distance 114.3,30.6 114.4,30.7

Schema 服务(生成 URI)

命令说明示例
navi导航链接amap navi 114.3,30.6 黄鹤楼
taxi打车链接amap taxi 114.3,30.6 黄鹤楼 114.4,30.7
trip行程规划amap trip "武汉游" '[{"title":"Day1","points":[...]}]'

输出格式

所有命令返回 JSON。

REST API 命令

返回高德 API 原始 JSON,包含 status、info、核心数据。

amap weather 武汉
{
  "status": "1",
  "forecasts": [{"city": "武汉市", ...}]
}

Schema 命令

返回 URI 链接,点击可直接唤醒高德地图 APP。

amap navi 114.30234,30.54489 黄鹤楼
{
  "status": "1",
  "uri": "https://uri.amap.com/marker?position=..."
}

调用示例

# 查天气
amap weather 武汉

# 地址转坐标
amap geo 黄鹤楼 武汉

# 搜索并获取详情
amap search 黄鹤楼 武汉
amap detail B001B0I4K0

# 周边搜索
amap around 学校 114.304569,30.593354 3000

# 路线规划
amap route 114.3,30.6 114.4,30.7 driving
amap route 114.3,30.6 114.4,30.7 walking

# 生成导航链接
amap navi 114.30234,30.54489 黄鹤楼

# 生成打车链接
amap taxi 114.30234,30.54489 黄鹤楼

解析示例

# 用 jq 解析
amap weather 武汉 | jq '.forecasts[0].casts'
amap geo 黄鹤楼 武汉 | jq '.geocodes[0].location'

# 用 Python 解析
amap search 黄鹤楼 | python3 -c "
import sys, json
data = json.load(sys.stdin)
for poi in data.get('pois', [])[:3]:
    print(poi['name'], poi['address'])
"

参数说明

  • 坐标格式经度,纬度(经度在前)
  • 半径单位:米
  • 路线方式:driving(驾车)、walking(步行)、cycling(骑行)、transit(公交)

注意事项

  • API Key 需要 Web服务 权限
  • 每日调用有限制
  • 仅支持中国境内

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Leads

Leads - command-line tool for everyday use

Registry SourceRecently Updated
General

Bmi Calculator

BMI计算器。BMI计算、理想体重、健康计划、体重追踪、儿童BMI、结果解读。BMI calculator with ideal weight, health plan. BMI、体重、健康。

Registry SourceRecently Updated
General

Blood

Blood — a fast health & wellness tool. Log anything, find it later, export when needed.

Registry SourceRecently Updated
General

Better Genshin Impact

📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 | 自动采集/挖矿/锄地 | 一条龙 | 全连音游 - UI A better genshin impact, c#, auto-play-game, automatic, g...

Registry SourceRecently Updated