mcpField
M
map

map

github.com/countbot-aiProductivity78340 installsUpdated 3d ago
Repository

About map

A command-line skill using the Amap API for users who need place searches and route planning. It searches attractions, restaurants, and general POIs, and provides driving, walking, and transit directions.

Key features

  1. 01Search attractions, restaurants, and general POIs
  2. 02Plan driving routes
  3. 03Plan walking routes
  4. 04Find transit routes
  5. 05Accept addresses or coordinates as endpoints

Use cases

  1. 01Find city attractions and plan an itinerary
  2. 02Search for restaurants or other places
  3. 03Get driving or walking directions between locations
  4. 04Plan a public transit trip

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/countbot-ai/countbot --skill map

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

Bundled files

References and scripts installed along with SKILL.md.

scripts/
config.json
config.json.example
map_manager.py
map.py

Details

From the project README

地图路线规划与 POI 搜索

基于高德地图 API 的路线规划和 POI 搜索服务。

配置

编辑 skills/map/scripts/config.json,填写高德地图 API Key:

{
  "amap_key": "YOUR_AMAP_KEY"
}

AI 调用示例

用户说"我想去东莞玩3天":

# 1. 搜索景点
python3 skills/map/scripts/map.py attractions --city 东莞 --page-size 20 --json

# 2. 查询景点间路线
python3 skills/map/scripts/map.py driving --origin "旗峰公园" --destination "可园博物馆" --origin-city 东莞 --dest-city 东莞

用户说"东莞有什么好吃的":

python3 skills/map/scripts/map.py restaurants --city 东莞 --page-size 20 --json

用户说"从天安门到鸟巢坐地铁怎么走":

python3 skills/map/scripts/map.py transit --origin "天安门" --destination "鸟巢" --city1 010 --city2 010

命令行参考

路线规划
# 驾车
python3 skills/map/scripts/map.py driving --origin "起点" --destination "终点" --origin-city 城市 --dest-city 城市

# 步行
python3 skills/map/scripts/map.py walking --origin "起点" --destination "终点" --origin-city 城市 --dest-city 城市

# 公交(需要城市编码)
python3 skills/map/scripts/map.py transit --origin "起点" --destination "终点" --city1 编码 --city2 编码

# 显示详细步骤
python3 skills/map/scripts/map.py driving --origin "起点" --destination "终点" --show-steps
POI 搜索
# 景点搜索(风景名胜 + 博物馆)
python3 skills/map/scripts/map.py attractions --city 城市 --page-size 20

# 餐厅搜索(排除快餐)
python3 skills/map/scripts/map.py restaurants --city 城市 --page-size 20

# 通用搜索
python3 skills/map/scripts/map.py search --keywords 关键词 --city 城市

常用城市编码

城市编码城市编码
北京010上海021
广州020深圳0755
东莞0769杭州0571

注意事项

  • 支持地址名称或经纬度坐标作为起终点,系统自动识别
  • 建议提供城市参数以提高地址解析准确性
  • 公交路线必须提供城市编码
  • 所有搜索命令支持 --json 输出

Comments

Markdown supported