360 Secure SkillHub
360 安全技能中心

.Gaodemapskill.Conflict

该 Skill 提供 amap_tool.py 命令行脚本,封装高德地图(AMap)Web 服务:按关键词与城市搜索 POI,以及按起点、终点和出行方式(驾车、步行、骑行、公交)规划路线。需要 Python 运行环境和 AMAP_API_KEY 环境变量,结果以命令行文本返回。

beelkic
beelkic
热度 90.91
最近更新 2026-05-11 17:33:05
分类:生活依赖:代码执行 / 第三方 API应用场景:旅行

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gaodemapskill-conflict
Metadata
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 for transit mode, 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"