SuperAPI AI Directory

map

General & other

View repository

Updated 10-15 20:28

About this skill

Map Route Planning and POI Search

A route planning and POI search service based on the Amap API.

Configuration

Edit skills/map/scripts/config.json, and fill in the Amap API Key:

{
  "amap_key": "YOUR_AMAP_KEY"
}

AI Usage Examples

User says "I want to go to Dongguan for 3 days":

# 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 东莞

User says "What good food is there in Dongguan":

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

User says "How do I get from Tiananmen to the Bird's Nest by subway":

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

Command Line Reference

Route Planning

# 驾车
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 Search

# 景点搜索(风景名胜 + 博物馆)
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 城市

Common City Codes

City Code City Code
Beijing 010 Shanghai 021
Guangzhou 020 Shenzhen 0755
Dongguan 0769 Hangzhou 0571

Notes

  • Supports address names or latitude/longitude coordinates as start and end points, automatically recognized by the system
  • It is recommended to provide the city parameter to improve address resolution accuracy
  • Public transit routes must provide a city code
  • All search commands support --json output