← Back to Skills Marketplace
zhangifonly

Baidu Map

by zhangifonly · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
578
Downloads
0
Stars
9
Active Installs
2
Versions
Install in OpenClaw
/install baidu-map
Description
百度地图开发助手,精通地理编码、路线规划、全景地图、智能交通 API
README (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 替换为 walkingriding

POI 搜索

区域搜索:

GET /place/v2/search?query=银行&region=北京&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 坐标,使用其他来源坐标需先转换。

使用场景

  1. 地址解析:用户输入地址 → 调用地理编码获取坐标 → 在地图上标注
  2. 路线导航:输入起终点 → 调用路线规划 → 展示距离、时间、路线
  3. 附近搜索:获取用户位置 → 周边 POI 搜索 → 按距离排序展示
  4. 物流追踪:批量地理编码 → 路线规划 → 轨迹展示

工作规范

  • ak 密钥不要暴露在前端代码中,服务端调用使用 SN 校验
  • 注意配额限制:个人开发者日配额有限,企业认证可提升
  • 批量请求使用批量接口,避免循环单条调用
  • BD-09 坐标不要直接用于其他地图平台,必须先转换
  • 逆地理编码返回的 formatted_address 可能不含省市,需拼接 addressComponent

最后更新: 2026-03-16

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install baidu-map
  3. After installation, invoke the skill by name or use /baidu-map
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug baidu-map
Version 1.0.0
License MIT-0
All-time Installs 9
Active Installs 9
Total Versions 2
Frequently Asked Questions

What is Baidu Map?

百度地图开发助手,精通地理编码、路线规划、全景地图、智能交通 API. It is an AI Agent Skill for Claude Code / OpenClaw, with 578 downloads so far.

How do I install Baidu Map?

Run "/install baidu-map" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Baidu Map free?

Yes, Baidu Map is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Baidu Map support?

Baidu Map is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Baidu Map?

It is built and maintained by zhangifonly (@zhangifonly); the current version is v1.0.0.

💬 Comments