← Back to Skills Marketplace
ggyybb

address2lnglat

by ggyybb · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
126
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install address2lnglat
Description
调用百度地图开放平台API,将地名批量转换为BD-09(百度)经纬度坐标,自动搜索地点 → 用户填入AK → 批量爬取坐标 → 保存CSV+JSON → 直接发送给用户。坐标保留6位小数,无需转换。
README (SKILL.md)

address2lnglat v4

通过百度地图开放平台 API,将地名批量转换为 BD-09(百度)坐标

坐标系说明

坐标系 说明 用途
BD-09 百度坐标系(本工具输出) 直接用于百度地图相关业务
GCJ-02 火星坐标系 高德/腾讯/Google地图等

⚠️ 百度地图 API 直接返回 BD-09 坐标,无需任何转换。

工作流程

  1. 用户输入关键词(如"天津赏花地点")
  2. AI 搜索并总结所有相关地点名称列表
  3. 提示用户提供百度地图 AK 和限制城市
  4. 运行 Python 脚本,调用百度 Place API 获取 BD-09 坐标
  5. 保存为 CSV + JSON 文件
  6. 直接发送 CSV 文件给用户

依赖

  • Python 3.x
  • requests 库(pip install requests

使用方法

python geocoder.py 天津赏花地点

脚本会依次提示:

  1. 输入百度地图 AK
  2. 是否限制在城市内搜索

输出字段

字段 说明
序号 编号
名称 地点名称
详细地址 结构化地址
BD-09经度 百度坐标经度(6位小数)
BD-09纬度 百度坐标纬度(6位小数)
坐标来源 place_api / geocoding_api
类型 地点类型(景点/学校等)
置信度 匹配置信度评分
状态 成功/失败

百度AK申请

  1. 访问 百度地图开放平台
  2. 注册开发者账号 → 进入「控制台」→「我的应用」
  3. 创建「浏览器端应用」→ 复制 AK
  4. 确保已开通「地理编码」服务(免费6000次/天)
Usage Guidance
This skill appears to do exactly what it says: batch geocode using Baidu Map APIs. Before installing or running it, (1) only provide your Baidu AK when you trust the runtime/agent — treat the AK like a secret and don't paste it into untrusted UIs; (2) be aware results are saved as CSV/JSON in the current directory; review the small Python script yourself (it is included) and run it in a controlled environment; (3) install only the 'requests' package (pip install requests) if needed; (4) check your Baidu AK quotas and restrict key usage (referrers/IPs) in the Baidu console per best practices. If you expect the agent itself to 'search' the web for place names, confirm whether you want the agent to perform those broader web actions — the executable script itself only queries Baidu APIs and requires interactive AK input.
Capability Analysis
Type: OpenClaw Skill Name: address2lnglat Version: 1.0.0 The skill bundle is a legitimate utility for geocoding addresses using the Baidu Maps API. The Python script (geocoder.py) and instructions (SKILL.md) follow a transparent workflow: prompting the user for an API key, performing searches via official Baidu endpoints (api.map.baidu.com), and saving the results locally as CSV/JSON files without any evidence of data exfiltration, obfuscation, or malicious intent.
Capability Assessment
Purpose & Capability
Name/description claim (batch-convert addresses to BD-09 via Baidu API) matches the included Python script and SKILL.md. The tool only calls Baidu Place and Geocoding APIs and saves results locally; no unrelated services or credentials are requested.
Instruction Scope
SKILL.md and script are largely aligned: both describe searching via Baidu Place API and saving CSV/JSON. Minor wording difference: SKILL.md mentions the AI 'search and summarize' step — the executable script performs searches via Baidu APIs rather than performing independent web scraping. The script prompts interactively for the AK and city-limit flag; it does not read other system files or environment variables.
Install Mechanism
No install spec; this is instruction+script only. Runtime dependency is the public 'requests' Python package (pip). No downloads from unknown URLs or extracted archives are present.
Credentials
No environment variables or external credentials are declared; the script asks the user at runtime to input their Baidu AK (no automatic exfiltration). The requested credential (Baidu AK) is directly proportional to the stated purpose.
Persistence & Privilege
Skill is not always-on and does not modify other skills or system-wide configs. It writes output files to the local working directory only and does not attempt to persist itself or escalate privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install address2lnglat
  3. After installation, invoke the skill by name or use /address2lnglat
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of address2lnglat. - Batch converts place names to BD-09 coordinates using Baidu Maps API. - Prompts user for Baidu Map AK and city restriction. - Outputs results as CSV and JSON with 6-decimal BD-09 coordinates. - Includes fields like place name, structured address, source, type, confidence, and status. - No manual coordinate system conversion needed.
Metadata
Slug address2lnglat
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is address2lnglat?

调用百度地图开放平台API,将地名批量转换为BD-09(百度)经纬度坐标,自动搜索地点 → 用户填入AK → 批量爬取坐标 → 保存CSV+JSON → 直接发送给用户。坐标保留6位小数,无需转换。 It is an AI Agent Skill for Claude Code / OpenClaw, with 126 downloads so far.

How do I install address2lnglat?

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

Is address2lnglat free?

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

Which platforms does address2lnglat support?

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

Who created address2lnglat?

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

💬 Comments