Baidu Map Webapi logo

Baidu Map Webapi

Community
infometa
baidu-map-webapi

编写、修改、审查或调试百度地图服务端 WebAPI 调用代码时使用,涵盖 POI 检索、路线规划、出发时间与耗时预测、交通事件、行政区划、地址坐标转换、天气和上车点等接口。用户要求 Node.js、Python、后端服务、curl 集成示例或排查 WebAPI 请求时触发;不用于直接回答普通地点/路线/天气结果、浏览器 BMapGL 代码或账户资源管理。

Overview

Publisherinfometa
Repositoryworkbuddyskills
Skill namebaidu-map-webapi
Stars
376
Forks
124
Bundled files
30
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 30 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by infometa on GitHub. Read the source before you install it.

Installation

Install the Baidu Map Webapi AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/infometa/workbuddyskills/tree/main/connectors/baidu-maps/skills/baidu-map-webapi
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/infometa/workbuddyskills.git /tmp/workbuddyskills
mkdir -p .claude/skills
cp -r /tmp/workbuddyskills/connectors/baidu-maps/skills/baidu-map-webapi .claude/skills/baidu-map-webapi
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Baidu Map Webapi in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Baidu Map Webapi on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Baidu Map Webapi is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

WebAPI 开发指南

本 skill 只组织可交付的服务端 WebAPI 代码。直接回答地点、路线、地址或天气结果时改用 baidu-map(本连接器 MCP 工具);浏览器地图代码使用 baidu-map-jsapi-gl。

工作流

  1. 先判断任务是多步业务流程还是单接口集成。
  2. 多步流程读取下方对应 recipe;单接口任务只读取对应 API reference,避免加载无关资料。
  3. 本地 reference 未覆盖的精确参数、返回字段、限制、错误码或版本差异,明确告知用户需以百度地图开放平台官方文档为准。
  4. 获取服务端 AK,按用户项目语言和已有结构编写调用代码。所有用户输入都用客户端的查询参数编码能力处理,不手工拼接未转义参数。
  5. 交付前检查端点、AK 类型、坐标顺序/坐标系、必填参数、错误处理和凭据泄漏风险。不得用未经核实的记忆补齐精确字段。

端点选择

百度地图提供两个服务端点:

端点类型Base URL适用场景
标准端点https://api.map.baidu.com/正式开发、生产环境、为用户生成的代码
高级功能体验端点https://api.map.baidu.com/map_service/百度地图官方提供,仅供大模型直接调用时快速体验高级权限功能

为用户生成的开发或生产代码必须使用标准端点。仅在集成测试、接口调试或用户明确要求体验高级能力时使用体验端点;不得把它写入交付代码。两类端点都需要 AK。

AK 凭证

AK(Access Key)是使用技能之前的必须参数,需要服务端 AK:

  1. 优先读取环境变量 BMAP_WEBAPI_AK 中的 AK。
  2. 无值时,提示用户:请先前往百度地图开放平台申请 服务端 的 AK,并设置环境变量;不要复用浏览器端 AK:
bash
export BMAP_WEBAPI_AK="百度地图AK"
  1. 示例与命令使用 $BMAP_WEBAPI_AK,不得把真实 AK 写入仓库、日志或最终回答:
bash
curl "https://api.map.baidu.com/place/v3/region?query=美食&region=北京&ak=$BMAP_WEBAPI_AK"

地点与算路规则

  • 将用户输入的地名或地址转成坐标/UID 时,先读 references/recipes/address_to_poi.md:结构化门牌地址走 references/geocoding.md,POI 名称或地标走 references/administrative_region_search.md。
  • 算路接口优先同时传坐标与 UID。取得 origin_uid / destination_uid 后必须传入,以提高大型 POI 绑路准确性。
  • 不推测坐标、UID 或坐标系;只能使用用户输入或可信接口结果。

Recipe 路由

文件适用场景权限
references/recipes/address_to_poi.md地址文本或地名 → 坐标 + POI UID(算路前置步骤)标准 AK
references/recipes/route_to_named_place.md用户说出地名 → 规划驾车路线标准 AK
references/recipes/smart_departure_time.md为准时到达计算出发时间高级权限
references/recipes/traffic_aware_route.md预测未来出发时的路况耗时高级权限
references/recipes/nearby_poi_search.md搜索用户附近的某类地点标准 AK
references/recipes/poi_search_to_detail.md关键词搜索 → 获取 POI 完整详情标准 AK
references/recipes/address_to_full_location.md地址文本 → 坐标 + 行政区划标准 AK
references/recipes/coordinate_to_structured_address.md坐标 → 结构化地址 + 行政区划标准 AK
references/recipes/weather_query.md通过城市名称/行政区划编码/坐标, 获取当地详细的天气信息标准 AK

单接口参考

  • references/constants.md - 通用常量:状态码
  • references/global_reverse_geocoding.md - 全球逆地理编码: 坐标转位置信息
  • references/reverse_geocoding_agent.md - 逆地理编码智能体: 智能逆地理编码地址解析
  • references/administrative_region_search.md - 行政区划区域检索: 行政区划地点检索
  • references/circular_region_search.md - 圆形区域检索: 圆形区域地点检索
  • references/multi_dimensional_search.md - 多维检索: 多条件智能检索POI
  • references/place_detail_search.md - 地点详情检索: 获取指定地点详细信息
  • references/place_input_suggestion.md - 地点输入提示: 地点输入提示匹配
  • references/geocoding.md - 地理编码: 地址解析为坐标
  • references/admin_division_query.md - 行政区划查询: 查询中国行政区划信息
  • references/domestic_weather_query.md - 国内天气查询: 国内天气查询多功能接口
  • references/overseas_weather_query.md - 海外天气查询: 查询海外城市天气
  • references/cycling_route_planning.md - 骑行路线规划: 骑行路线规划方案检索
  • references/driving_route_planning.md - 驾车路线规划: 驾车路线规划与路况预测
  • references/capabilities/driving_route_duration.md - 驾车路线历史耗时
  • references/capabilities/future_driving_route.md - 未来驾车路线耗时
  • references/capabilities/suggested_departure_time.md - 建议出发时间
  • references/capabilities/waypoint_route_planning.md - 途经点顺序优化
  • references/motorcycle_route_planning.md - 摩托车路线规划: 摩托车路线规划服务
  • references/transit_route_planning.md - 公交路线规划: 多交通方式路线规划
  • references/walking_route_planning.md - 步行路线规划: 步行路线规划

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Baidu Map Webapi AI skill do?

编写、修改、审查或调试百度地图服务端 WebAPI 调用代码时使用,涵盖 POI 检索、路线规划、出发时间与耗时预测、交通事件、行政区划、地址坐标转换、天气和上车点等接口。用户要求 Node.js、Python、后端服务、curl 集成示例或排查 WebAPI 请求时触发;不用于直接回答普通地点/路线/天气结果、浏览器 BMapGL 代码或账户资源管理。

Why use Baidu Map Webapi on TypingMind?

Because you install it once and use it with any model. Baidu Map Webapi is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Baidu Map Webapi in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/infometa/workbuddyskills/tree/main/connectors/baidu-maps/skills/baidu-map-webapi. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Baidu Map Webapi?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Baidu Map Webapi?

As many as you like. As long as a model supports skills, you can use Baidu Map Webapi with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Baidu Map Webapi AI skill free?

Yes. It is published on GitHub by infometa under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇