baidu-map
БесплатноБез исполняемых скриптовНе проверен百度地图位置服务技能 —— 地点检索与详情、路线规划(驾车/骑行/步行/公交)、批量算路、地址正逆解析、实时路况、天气、行政区划、地图调起与行程地图。说明各工具的真实参数、坐标顺序约定与实测坑位。
от infometa★ 475 звёзд на GitHubОб этом скилле
百度地图 Skill
本 Skill 覆盖百度地图 MCP Server(mcp-server-baidu-maps)暴露的全部工具。以下参数与行为均经真实调用验证,与工具自带 schema 存在差异之处已标注。
认证前置
- 本 Connector 使用用户自填 AK:AK 由 WorkBuddy 加密存于本机
~/.workbuddy并在请求时注入服务地址,AI 不需要也不应在任何参数中传 ak。 - AK 必须是开放平台控制台创建的**「服务器端」类型**;浏览器端 AK 会因 referer 校验被拒。
- 鉴权类错误(AK 无效、服务未开通、配额耗尽)不要重试,直接提示用户去控制台检查 AK 类型、服务开通状态与当日配额。
坐标系与参数顺序(最高频出错点)
全部坐标为百度坐标系 bd09ll。用户给的若是 GPS(wgs84)或高德/腾讯(gcj02)坐标,存在数百米偏移,必须先说明,不要直接混用。
经纬度顺序在工具之间不一致,逐个确认:
| 工具 | 参数 | 顺序 |
|---|---|---|
map_search_places |
location |
纬度,经度 |
map_directions |
origin / destination |
纬度,经度 |
map_directions_matrix |
origins / destinations |
纬度,经度,多点用 | 分隔 |
map_road_traffic |
center / bounds / vertexes |
纬度,经度 |
map_search_pro |
center |
纬度,经度 |
map_uri |
location |
纬度,经度 |
map_weather |
location |
经度,纬度(与上面全部相反) |
map_geoconv |
coords |
经度,纬度 |
map_reverse_geocode 用独立数值参数 latitude / longitude(也接受别名 lat / lng),不涉及顺序。
另一处不一致:境内外开关在多数工具叫 is_chinese_mainland,但 map_weather 叫 is_china。两者都是字符串 "true" / "false",不是布尔。
district_id 是字符串类型的 6 位行政区划码(如 "330100"),不要传数字。
工具总览
服务端共暴露 14 个工具,均已实测。其中 map_geoconv 当前服务端返回错误、官方待修复,其余 13 个正常可用。
| 工具 | 用途 | 必填参数 | 实测 |
|---|---|---|---|
map_geocode |
地址文本 → 坐标 | address |
✅ |
map_reverse_geocode |
坐标 → 地址/行政区划/周边 | (需给出经纬度对) | ✅ |
map_search_places |
关键字检索 POI | query |
✅ |
map_place_details |
用 uid 查 POI 详情 | uid |
✅ |
map_directions |
两点路线规划 | origin, destination |
✅ |
map_directions_matrix |
多起终点批量距离/耗时 | origins, destinations |
✅ |
map_weather |
实时天气 + 未来 5 天 | (district_id 或 location) |
✅ |
map_ip_location |
IP → 城市 | — | ✅ |
map_road_traffic |
实时路况 | model |
✅ |
map_search_pro |
自然语言多维检索 | query, region |
✅ |
map_district_search |
行政区划 → adcode/边界/下级 | keyword |
✅ |
map_uri |
生成百度地图调起链接 | service |
✅ |
map_mark |
行程文本 → 可分享地图页 | text_content |
✅ |
map_geoconv |
坐标系转换 | coords |
⚠️ 待修复 |
典型耗时:多数工具 200~600ms;map_directions 与 map_search_pro 约 1s;map_mark 约 7s,调用前先告知用户在生成。
工具详解
map_geocode — 地理编码
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| address | string | ✅ | 最多 84 字节。支持结构化地址("北京市海淀区上地十街10号"),也支持"路与路交叉口"(仅当地址库存在该描述时才有结果) |
| city | string | - | 限定城市,消解同名地址,如"北京市" |
| inarea | string | - | 仅 is_chinese_mainland="false" 时有效,国家/地区代码,如 "USA,HKG" |
| is_chinese_mainland | string | - | "true"(默认)/"false"。查港澳台及海外须传 "false" |
返回 location.lng/lat 及 precise(是否精确)、confidence、level(地址层级)。precise=0 时应提示用户结果可能不准。
map_reverse_geocode — 逆地理编码
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| latitude | number | - | 纬度(bd09ll),别名 lat |
| longitude | number | - | 经度(bd09ll),别名 lng |
四个参数 schema 上都标 optional,但必须给出一对完整经纬度,否则无法定位。返回结构化地址、adcode、所在道路与周边 POI。
map_search_places — 地点检索
两种模式:给 region 做城市内检索(最细到 city 级);给 location + radius 做圆形周边检索。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| query | string | ✅ | 关键字,至多 10 个,英文逗号分隔 |
| tag | string | - | 中文分类过滤,如 "美食,购物" |
| region | string | - | 城市名或 citycode,不传默认全国;is_chinese_mainland="false" 时必传且只能是文本(如"东京") |
| location | string | - | 圆形检索中心点,纬度,经度 |
| radius | integer | - | 圆形检索半径(米),与 location 配对使用 |
| language | string | - | 返回语言,如 "en"、"jp"、"cht" |
| is_chinese_mainland | string | - | 同上 |
返回 results[],每项含 uid —— 交给 map_place_details 取详情。
map_place_details — 地点详情
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| uid | string | ✅ | POI 唯一标识,来自 map_search_places |
| is_chinese_mainland | string | - | 同上 |
返回评分、营业时间、品牌、价格等,字段随 POI 类型变化,不要假定某字段一定存在。
map_directions — 路线规划
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| origin | string | ✅ | 起点,位置名称或 纬度,经度 |
| destination | string | ✅ | 终点,同上 |
| model | string | - | driving(默认)/riding/walking/transit |
| is_chinese_mainland | string | - | 起终点任一在内地则传 "true" |
参数名是 model,不是 mode。 该工具直接接受地名(实测 origin="北京西站", destination="故宫" 可成功),无需先跑 map_geocode;仅当地名有歧义、需要用户确认选哪个时,才先用 map_search_places 列候选。
map_directions_matrix — 批量算路
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| origins | string | ✅ | 多起点 纬度,经度,用 | 分隔 |
| destinations | string | ✅ | 多终点,同上 |
| model | string | - | driving / riding / walking |
只接受坐标,不接受地名(与 map_directions 不同),地名需先 map_geocode。限额:驾车起终点个数之积 ≤ 100;步行任意起终点间距 ≤ 200KM,超限返回参数错误。
map_weather — 天气查询
district_id 与 location 二选一,返回实时天气 + 未来 5 天预报。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| district_id | string | - | 字符串形式的 6 位行政区划码,如 "330100" |
| location | string | - | 经度,纬度(注意与其他工具相反) |
| is_china | string | - | 字段名是 is_china,不是 is_chinese_mainland;含港澳台算 "true" |
不知道 adcode 时,先 map_district_search(keyword="杭州市") 拿 code,再传 district_id。
map_ip_location — IP 定位
| 参数 | 类型 | 必填 | 说明 | |----
Установить baidu-map в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл baidu-map?
百度地图位置服务技能 —— 地点检索与详情、路线规划(驾车/骑行/步行/公交)、批量算路、地址正逆解析、实时路况、天气、行政区划、地图调起与行程地图。说明各工具的真实参数、坐标顺序约定与实测坑位。
Как установить скилл baidu-map?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл baidu-map запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic