← Back to Skills Marketplace
klscool

Amap Map

by klscool · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
264
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install amap-map
Description
高德地图 API 技能(搜索、周边、POI、导航、地理编码)。调用 /scripts/amap.py,支持关键词搜索、周边搜索、POI 详情、步行/骑行/驾车路径规划、地址转坐标。
README (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

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install amap-map
  3. After installation, invoke the skill by name or use /amap-map
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug amap-map
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Amap Map?

高德地图 API 技能(搜索、周边、POI、导航、地理编码)。调用 /scripts/amap.py,支持关键词搜索、周边搜索、POI 详情、步行/骑行/驾车路径规划、地址转坐标。 It is an AI Agent Skill for Claude Code / OpenClaw, with 264 downloads so far.

How do I install Amap Map?

Run "/install amap-map" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Amap Map free?

Yes, Amap Map is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Amap Map support?

Amap Map is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Amap Map?

It is built and maintained by klscool (@klscool); the current version is v1.0.0.

💬 Comments