← 返回 Skills 市场
klscool

Amap Map

作者 klscool · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
264
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install amap-map
功能描述
高德地图 API 技能(搜索、周边、POI、导航、地理编码)。调用 /scripts/amap.py,支持关键词搜索、周边搜索、POI 详情、步行/骑行/驾车路径规划、地址转坐标。
使用说明 (SKILL.md)

高德地图技能 (Amap Map)

使用说明

调用脚本

python3 /root/.openclaw/skills/amap-map/scripts/amap.py \x3C功能> \x3C参数>
python3 /root/.openclaw/skills/amap-map/scripts/amap.py --usage  # 查看使用统计

功能列表

1. 关键词搜索(text_search)

搜索 POI 地点信息

python3 /root/.openclaw/skills/amap-map/scripts/amap.py text_search "餐厅" "北京"

2. 周边搜索(around_search)

搜索指定位置周边的 POI

python3 /root/.openclaw/skills/amap-map/scripts/amap.py around_search "116.397428,39.90923" "餐厅" 1000

参数:经纬度,关键词,半径(米,默认 1000)

3. POI 详情(poi_detail)

获取 POI 详细信息

python3 /root/.openclaw/skills/amap-map/scripts/amap.py poi_detail "POI_ID"

4. 步行导航(walking)

步行路径规划

python3 /root/.openclaw/skills/amap-map/scripts/amap.py walking "116.397428,39.90923" "116.407428,39.91923"

参数:起点经纬度,终点经纬度

5. 骑行导航(bicycling)

骑行路径规划(支持 500km 内)

python3 /root/.openclaw/skills/amap-map/scripts/amap.py bicycling "116.397428,39.90923" "116.407428,39.91923"

6. 驾车导航(driving)

驾车路径规划

python3 /root/.openclaw/skills/amap-map/scripts/amap.py driving "116.397428,39.90923" "116.407428,39.91923"

7. 地理编码(geo)

地址转经纬度

python3 /root/.openclaw/skills/amap-map/scripts/amap.py geo "北京市天安门广场" "北京"

参数:地址,城市(可选)

8. 逆地理编码(regeocode)

经纬度转地址

python3 /root/.openclaw/skills/amap-map/scripts/amap.py regeocode "116.397428,39.90923"

9. 查看使用统计(--usage)

查看 API 调用统计和剩余配额

python3 /root/.openclaw/skills/amap-map/scripts/amap.py --usage

触发条件

  • 用户询问路线、导航
  • 查找附近的餐厅、景点、设施等
  • 需要地址和坐标转换
  • 查询 POI 详细信息

返回格式

JSON 格式,包含:

  • status: "1" 表示成功,"0" 表示失败
  • info: 状态说明
  • 具体数据根据功能不同而异

API 密钥配置

~/.openclaw/openclaw.json 中配置:

{
  "skills": {
    "entries": {
      "amap-map": {
        "enabled": true,
        "apiKey": "你的高德 API Key"
      }
    }
  }
}

获取 API Key

  1. 访问 https://lbs.amap.com/
  2. 注册/登录开发者账号
  3. 创建应用,获取 Web 服务 API Key
  4. 启用相关服务(Web 服务 API)

使用统计说明

运行 --usage 可查看:

  • 总调用次数、成功/失败次数
  • 每日配额(5000 次/天)和今日剩余
  • 最近 7 天每日调用记录

配额说明:高德个人开发者账号每日免费配额 5000 次,次日 0 点重置。

统计文件位置:/root/.openclaw/workspace/skills/amap-map/.usage.json

安全使用建议
Before installing: - Expect to provide a Gaode/Amap API key. The skill metadata does not declare this, but the script requires AMAP_API_KEY (env) or an apiKey entry under ~/.openclaw/openclaw.json -> skills -> entries -> "amap-map". Add the key only if you trust the skill. - Ensure your environment has python3 and the 'requests' library available; the skill has no install spec and will fail if requests is missing. - The script will read ~/.openclaw/openclaw.json (to get its own apiKey) and will create a .usage.json under the skill workspace to record local usage; review those files if you are concerned about local data being read/written. - Network calls are made only to restapi.amap.com (Amap). If you need to restrict outbound traffic, allow that host only. - If you want stronger assurance, request the publisher to update the skill manifest to declare the required environment variable (AMAP_API_KEY), list runtime dependencies (python3, requests), and include an explicit install spec or runtime dependency note.
功能分析
Type: OpenClaw Skill Name: amap-map Version: 1.0.0 The amap-map skill is a legitimate implementation for interacting with the Amap (高德地图) Web Services API. The script (scripts/amap.py) provides standard mapping functions like POI search and navigation, handles API keys via the environment or local configuration, and maintains a local usage log (.usage.json) with proper file locking. No malicious behavior, data exfiltration to unauthorized domains, or prompt injection risks were identified.
能力评估
Purpose & Capability
The code implements the advertised Amap features (text search, around, POI detail, routing, geocoding) and only calls Amap's REST API (restapi.amap.com). However, the skill metadata declares no required credentials while the script in scripts/amap.py clearly expects an API key (AMAP_API_KEY env var or an entry in ~/.openclaw/openclaw.json). This is a proportional capability but the manifest omits the key requirement.
Instruction Scope
SKILL.md instructs the agent to run the included Python script and to place the API key in ~/.openclaw/openclaw.json, consistent with the code. The script reads ~/.openclaw/openclaw.json and writes a local .usage.json under the skill workspace. Reading that config file is reasonable to find its own apiKey, but it does open a broader user config file (which may contain other data) even though it only extracts the amap-map entry.
Install Mechanism
This is an instruction-only skill (no install spec). The script imports third-party modules (requests) and uses fcntl; the manifest does not declare these runtime requirements or required binaries (python3). Without an install spec or declared dependencies, runtime execution may fail or the operator may not realize network-capable Python code will run.
Credentials
The registry metadata lists no required environment variables, but the script uses AMAP_API_KEY from the environment (and/or an apiKey stored in ~/.openclaw/openclaw.json). Asking for an API key is expected for this skill, but the omission in metadata is a mismatch and should be fixed so users know a secret is required. The script does not request unrelated credentials.
Persistence & Privilege
The skill is not always-enabled and does not request elevated or system-wide privileges. It writes a local usage file under its skill workspace and reads the user's ~/.openclaw/openclaw.json to find its own config entry — both are reasonable for this functionality and limited in scope.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install amap-map
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /amap-map 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Amap Map Skill 1.0.0 – Initial release with full Gaode Map API integration - Supports POI search, nearby search, POI detail, route planning (walking, bicycling, driving), geocoding, and reverse geocoding. - Command-line interface script: /scripts/amap.py, with detailed usage examples. - API call usage statistics tracking and daily quota display. - Clear setup guide for API Key configuration. - Returns standardized JSON responses with status and info fields.
元数据
Slug amap-map
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Amap Map 是什么?

高德地图 API 技能(搜索、周边、POI、导航、地理编码)。调用 /scripts/amap.py,支持关键词搜索、周边搜索、POI 详情、步行/骑行/驾车路径规划、地址转坐标。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 264 次。

如何安装 Amap Map?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install amap-map」即可一键安装,无需额外配置。

Amap Map 是免费的吗?

是的,Amap Map 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Amap Map 支持哪些平台?

Amap Map 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Amap Map?

由 klscool(@klscool)开发并维护,当前版本 v1.0.0。

💬 留言讨论