简介
基于高德地图官方API的地点搜索与路线规划工具,支持驾车/步行/骑行/公交多模式导航,适用于出行场景。
原始描述
Interact with Gaode Map API to search places and plan routes using driving, walking, bicycling, or transit modes with optional city context.
安装
下载 zip 解压后,把里面的文件放进你的 Agent 的 skills 目录即可使用。
给 Agent 的直链(让它自己下载安装):
https://v110.com/skill/gaode-map-skills.zip
Claude Code 放 ~/.claude/skills/;Codex、TypingMind 等按各自文档的 skills 目录放置。技能申请什么权限由作者决定,装前请确认。
中文使用说明 来自收录源
核心功能
Gaode Map Skill 是一款基于高德地图(AMap)开放API的地理位置服务工具,主要提供两大核心功能:地点搜索与路线规划。该技能通过调用amap_tool.py脚本,以命令行方式与高德地图服务交互,适用于需要集成地理信息服务的自动化工作流或AI Agent场景。
地点搜索(Place Search)
支持关键词检索POI(兴趣点),可限定城市范围获取更精准结果。典型应用场景包括查找周边商户、搜索地标建筑、定位特定服务设施等。
路线规划(Route Planning)
提供四种出行模式的智能路径计算:
- driving(驾车):默认模式,支持实时路况与多种路线策略
- walking(步行):人行道优先的路径规划
- bicycling(骑行):非机动车道友好路线
- transit(公交):公共交通换乘方案(需指定城市参数)
起终点支持地址文本或经纬度坐标("经度,纬度"格式)双模式输入,灵活适配不同数据来源。
显著优点
- 官方数据权威性:直连高德地图API,数据来源可靠,覆盖中国大陆地区POI数据全面
- 多模式出行支持:单一接口满足多样化出行需求,无需切换不同服务
- 轻量级集成:Python脚本化部署,环境依赖简单(仅需Python运行时)
- 坐标/地址双兼容:降低用户输入门槛,同时支持精确坐标与模糊地址
局限性与潜在风险
| 维度 | 说明 |
|---|---|
| 地理覆盖 | 主要服务中国大陆,境外数据支持有限 |
| API依赖 | 需申请并配置AMAP_API_KEY,存在调用配额与商业授权限制 |
| 环境约束 | 要求目标系统预装Python运行时,容器化场景需额外配置 |
| 数据时效 | 实时路况、公交班次等动态数据依赖网络请求,离线不可用 |
| 隐私合规 | 地理位置信息属于敏感数据,需符合《个人信息保护法》处理要求 |
适合人群
- 需要集成地图服务的自动化工作流开发者
- 构建出行助手类AI Agent的产品团队
- 本地化生活服务相关的RAG或工具调用场景
- 对高德地图数据有偏好的中国大陆业务场景
常规风险提示
- 密钥安全:
AMAP_API_KEY需妥善保管,避免硬编码泄露或误提交至版本仓库 - 调用成本控制:高并发场景需关注API计费策略,建议实施限流与缓存机制
- 结果验证:地址解析可能存在歧义,关键业务场景建议增加人工确认环节
技能正文
name: gaode_map description: A skill to interact with Gaode Map (AMap) for location search and route planning. metadata: openclaw: requires: env: ["AMAP_API_KEY"] bins: ["python"]
Gaode Map Skill
This skill allows you to search for places and plan routes using Gaode Map (AMap) API.
Usage
You can use the amap_tool.py script to perform actions. The API Key is expected to be in the AMAP_API_KEY environment variable.
Place Search
Search for POIs (Points of Interest).
Command:
python amap_tool.py search --keywords "<keywords>" [--city "<city>"]
Parameters:
keywords: The search query (e.g., "restaurants", "gas station").city: (Optional) The city to search in.
Route Planning
Plan a route between two locations.
Command:
python amap_tool.py route --origin "<origin>" --destination "<destination>" [--mode "<mode>"] [--city "<city>"]
Parameters:
origin: Start location (address or coordinates "lon,lat").destination: End location (address or coordinates "lon,lat").mode: (Optional) Route mode:driving(default),walking,bicycling,transit.city: (Optional) City name (required fortransitmode, or to help geocoding).
Examples
User: "Find coffee shops in Shanghai." Action:
python amap_tool.py search --keywords "coffee shop" --city "Shanghai"
User: "Show me the driving route from Beijing West Station to the Forbidden City." Action:
python amap_tool.py route --origin "Beijing West Station" --destination "Forbidden City" --mode "driving" --city "Beijing"
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。