← 返回 Skills 市场
Baidu Map
作者
zhangifonly
· GitHub ↗
· v1.0.0
· MIT-0
578
总下载
0
收藏
9
当前安装
2
版本数
在 OpenClaw 中安装
/install baidu-map
功能描述
百度地图开发助手,精通地理编码、路线规划、全景地图、智能交通 API
使用说明 (SKILL.md)
百度地图 AI 助手
你是一个精通百度地图开放平台的 AI 助手,能够帮助开发者快速集成 LBS 服务。
身份与能力
- 精通百度地图 Web 服务 API、JavaScript API、Android/iOS SDK
- 熟悉 BD-09 坐标系及各坐标系转换
- 了解百度地图全景、智能交通、物流等高级服务
API 知识库
Base URL: https://api.map.baidu.com
认证方式: ak 参数(在百度地图开放平台控制台获取)
地理编码
地址 → 坐标:
GET /geocoding/v3/?address=北京市海淀区上地十街10号&output=json&ak={ak}
坐标 → 地址(逆地理编码):
GET /reverse_geocoding/v3/?location=39.983424,116.322987&output=json&ak={ak}
路线规划
驾车路线:
GET /directionlite/v1/driving?origin=40.01116,116.339303&destination=39.936404,116.452562&ak={ak}
公交路线:
GET /directionlite/v1/transit?origin=40.01116,116.339303&destination=39.936404,116.452562&ak={ak}
步行/骑行路线:将 driving 替换为 walking 或 riding。
POI 搜索
区域搜索:
GET /place/v2/search?query=银行®ion=北京&output=json&ak={ak}
周边搜索:
GET /place/v2/search?query=餐厅&location=39.983424,116.322987&radius=2000&output=json&ak={ak}
POI 详情:
GET /place/v2/detail?uid={poi_uid}&output=json&ak={ak}
IP 定位
GET /location/ip?ip=111.206.214.37&coor=bd09ll&ak={ak}
天气查询
GET /weather/v1/?district_id=110100&data_type=all&ak={ak}
静态地图
GET /staticimage/v2?center=116.403874,39.914888&zoom=11&width=400&height=300&ak={ak}
支持添加标注:&markers=116.403874,39.914888
坐标转换
GET /geoconv/v2/?coords=114.21892734521,29.575429778924&from=1&to=5&ak={ak}
from/to 参数:1=WGS-84, 3=GCJ-02, 5=BD-09
坐标系说明
| 坐标系 | 说明 | 使用场景 |
|---|---|---|
| WGS-84 | GPS 原始坐标 | GPS设备、国际地图 |
| GCJ-02 | 国测局坐标(火星坐标) | 高德地图、腾讯地图 |
| BD-09 | 百度坐标 | 百度地图专用 |
百度地图 API 输入输出均为 BD-09 坐标,使用其他来源坐标需先转换。
使用场景
- 地址解析:用户输入地址 → 调用地理编码获取坐标 → 在地图上标注
- 路线导航:输入起终点 → 调用路线规划 → 展示距离、时间、路线
- 附近搜索:获取用户位置 → 周边 POI 搜索 → 按距离排序展示
- 物流追踪:批量地理编码 → 路线规划 → 轨迹展示
工作规范
- ak 密钥不要暴露在前端代码中,服务端调用使用 SN 校验
- 注意配额限制:个人开发者日配额有限,企业认证可提升
- 批量请求使用批量接口,避免循环单条调用
- BD-09 坐标不要直接用于其他地图平台,必须先转换
- 逆地理编码返回的
formatted_address可能不含省市,需拼接addressComponent
最后更新: 2026-03-16
安全使用建议
This is a documentation-style helper for Baidu Maps APIs and appears coherent. Before using: obtain an official Baidu 'ak' and follow the SKILL.md guidance to keep it server-side (use SN validation), respect rate limits and quotas, and handle any user location data according to your privacy rules. Because the skill can be invoked by the agent autonomously (platform default), be mindful if you allow automated runs that might embed or request real API keys — do not store sensitive keys in front-end code or expose them in outputs.
功能分析
Type: OpenClaw Skill
Name: baidu-map
Version: 1.0.0
The skill bundle is a legitimate documentation and instruction set for an AI agent to assist with the Baidu Map API. It contains standard API endpoints, coordinate system explanations, and best practices for developers. There are no executable scripts, suspicious network calls, or malicious instructions in SKILL.md or _meta.json.
能力评估
Purpose & Capability
Name/description (Baidu Map dev helper) match the SKILL.md content: examples of geocoding, routing, POI, static maps and coordinate conversion. No unrelated binaries, env vars, or capabilities are requested.
Instruction Scope
SKILL.md is a focused API reference and integration guidance for Baidu Maps (api.map.baidu.com). It does not instruct reading system files, accessing unrelated env vars, or transmitting data to unexpected endpoints. It even warns not to expose the ak in frontend.
Install Mechanism
No install spec and no code files — instruction-only skill; nothing will be downloaded or written to disk by an installer.
Credentials
No environment variables, credentials, or config paths are required by the skill. The SKILL.md references the Baidu 'ak' concept appropriately and advises server-side protection (SN validation).
Persistence & Privilege
Skill is not marked always:true and uses normal agent invocation defaults. It does not request persistent or system-wide privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install baidu-map - 安装完成后,直接呼叫该 Skill 的名称或使用
/baidu-map触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Major update: Comprehensive documentation and feature list added for Baidu Map skill.
- Updated skill name, version, description, tags, and category for accuracy and clarity.
- Added detailed API usage examples covering geocoding, route planning, POI search, IP location, weather, static maps, and coordinate conversion.
- Provided thorough explanations of supported coordinate systems and their application scenarios.
- Included practical usage scenarios for developers and best practices for API integration.
- Removed "coming soon" status and development placeholders; documentation is now production-ready.
v0.1.0
Baidu Map Skill v0.1.0
- Initial release announcement.
- Skill is under development and not yet available.
- Planned features include AI enhancements, intelligent analysis, and automation.
- Collaboration and feedback are encouraged; contact information provided.
元数据
常见问题
Baidu Map 是什么?
百度地图开发助手,精通地理编码、路线规划、全景地图、智能交通 API. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 578 次。
如何安装 Baidu Map?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install baidu-map」即可一键安装,无需额外配置。
Baidu Map 是免费的吗?
是的,Baidu Map 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Baidu Map 支持哪些平台?
Baidu Map 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Baidu Map?
由 zhangifonly(@zhangifonly)开发并维护,当前版本 v1.0.0。
推荐 Skills