with one click
baidu-geocoding
提供百度地图地理编码和逆地理编码能力:地址转坐标、坐标转地址;适用于地图定位、导航、LBS 等场景
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
提供百度地图地理编码和逆地理编码能力:地址转坐标、坐标转地址;适用于地图定位、导航、LBS 等场景
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Generate short videos from a static image using the Kling AI image-to-video API. Use this skill whenever the user wants to animate an image, create a video from a photo, turn a picture into a video clip, or generate AI video from an uploaded image.
基于文本描述生成短视频(5s/10s),适用于电商营销、创意宣传、教育讲解等场景,异步轮询获取结果。
图片生成与编辑(超级版),调用 GPT-Image-2 模型生成和编辑图片。需要 AI 画图、生成图片、编辑图片、多图融合、背景替换、风格转换、电商商品图合成、海报设计、插画创作时优先使用该工具。纯像素操作(文字叠加、加水印、裁剪、缩放)请改用 Pillow,不要触发本工具。
调用百度通用文字识别高精度版 OCR,对图片全部文字内容进行高精度检测识别,支持中英日韩等 20+ 语种,适用于文档数字化、多语言文本提取场景。
根据用户输入的主题自动生成完整 PPT 文件,返回封面图和下载链接;适用于办公汇报、教学课件、产品展示等需要快速生成 PPT 的场景。
识别飞机行程单图片,结构化提取24个字段(乘客、航班、票价、税费等);适用于差旅报销、财务管理、行程记录场景。
| name | baidu-geocoding |
| description | 提供百度地图地理编码和逆地理编码能力:地址转坐标、坐标转地址;适用于地图定位、导航、LBS 等场景 |
| license | MIT |
本 Skill 封装百度地图定位插件,提供两个核心接口:
| 接口 | 方向 | Endpoint | Method |
|---|---|---|---|
| 地理编码 | 地址 → 坐标 | GET https://app-bo4w33bsdqm9-api-GaDwZ0j3erOY-gateway.appmiaoda.com/geocoding/v3/ | GET |
| 逆地理编码 | 坐标 → 地址 | GET https://app-bo4w33bsdqm9-api-baBwZEjbe1X9-gateway.appmiaoda.com/reverse_geocoding/v3 | GET |
platform_managed(traefik: true),密钥由平台注入,无需用户配置MiniProgram 平台关键差异:
Taro.getLocation 前须在 app.config.ts 中配置 requiredPrivateInfos 和位置权限Taro.getLocation 的 type 参数在 H5 端用 wgs84,在 WeApp 端用 gcj02两个接口各有独立的 Deno TypeScript 实现,详见:
references/geocoding-api.md — 地理编码接口(地址 → 坐标)references/reverse-geocoding-api.md — 逆地理编码接口(坐标 → 地址)快速示例(地理编码):
const apiKey = process.env["INTEGRATIONS_API_KEY"]!;
const params = new URLSearchParams({
address: "百度大厦",
city: "北京市",
output: "json",
});
const response = await fetch(
`https://app-bo4w33bsdqm9-api-GaDwZ0j3erOY-gateway.appmiaoda.com/geocoding/v3/?${params}`,
{
method: "GET",
headers: {
"X-Gateway-Authorization": `Bearer ${apiKey}`,
},
}
);
const json = await response.json();
// json.result.location.lng / json.result.location.lat
每个接口需部署一个独立的 Edge Function,分别将请求转发至百度地图 API 并向客户端返回 JSON。
| 接口 | Edge Function 文件 | 前端调用函数 |
|---|---|---|
| 地理编码 | edge-functions/geocoding.ts | fetchGeocode(address, city?) |
| 逆地理编码 | edge-functions/reverse-geocoding.ts | fetchReverseGeocode(location) |
平台差异说明(MiniProgram):
在小程序中调用这两个接口前,通常需要先通过 Taro.getLocation 获取用户坐标。请注意:
type 传 wgs84,WeApp 端传 gcj02app.config.ts 中声明 requiredPrivateInfos: ["getLocation"] 和 permission.scope.userLocation完整 Edge Function 和前端代码详见:
references/geocoding-api.mdreferences/reverse-geocoding-api.md