mcpField
A
amap

amap

github.com/tangqihyOther0189 installsUpdated 38w ago
Repository

About amap

amap is a skill for querying driving routes between places through the Amap API. It is intended for users who need route distances and estimated travel times, with geocoding and options for planning by time, distance, traffic, or toll preferences.

Key features

  1. 01Query driving distance and time in natural language
  2. 02Convert addresses and coordinates
  3. 03Plan driving routes
  4. 04Choose from multiple route strategies

Use cases

  1. 01Check driving time between two places
  2. 02Compare route distance and estimated tolls
  3. 03Plan routes that avoid highways or congestion

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/tangqihy/openclaw-map-skills --skill amap

After installing, type/amapin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

.gitignore
requirements.txt
.env.example
amap_route.py
LICENSE
README.md
amap_planning.py

Details

From the project README

高德地图路径规划

功能

  • 自然语言路径查询:查询两个地点之间的驾车距离和时间
  • 地理编码:将地址转换为经纬度坐标
  • 驾车路径规划:规划最优驾车路线
  • 多策略规划:支持时间优先、距离优先、避免收费、不走高速等多种策略

使用方式

基本用法

用户可以使用自然语言询问路径问题:

  • "光启园到公园海德要多久?"
  • "从上海虹桥到浦东机场距离多远?"
  • "开车从家到公司需要多少时间?"
  • "帮我规划一下从A到B的路线,不走高速"
参数
  • origin - 起点(地址或经纬度)
  • destination - 终点(地址或经纬度)
  • city - 城市(可选,默认:上海)
  • strategy - 规划策略
    • 0: 速度优先(默认)
    • 1: 费用优先(不走收费)
    • 2: 常规最快
    • 4: 躲避拥堵
    • 10: 综合推荐(躲避拥堵+时间优先)
    • 13: 不走高速
    • 14: 避免收费
    • 19: 高速优先
返回格式
📍 光启园 → 公园海德
🚗 距离:XX.X km
⏱️  预计时间:XX 分钟
💡 路线概况:XX条主路,XX个红绿灯
💰 预计路费:XX 元

注意事项

  • 需要 AMAP_API_KEY 环境变量或配置文件中设置高德 API Key
  • 建议上海地区查询,其他城市需要指定 city 参数

Comments

Markdown supported