address2lnglat for Openclaw

A Python-powered utility for batch converting Chinese location names into precise BD-09 Baidu coordinates using official APIs.

ggyybb
v1.0.0
Apr 2, 2026
0
734
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install address2lnglat

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install address2lnglat using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is address2lnglat?

address2lnglat is a specialized technical utility within the Openclaw Skills ecosystem designed to bridge the gap between human-readable location names and precise geospatial data. By interfacing directly with the Baidu Maps Open Platform API, this skill automates the retrieval of BD-09 coordinates, which are the native standard for mapping applications in China.

This tool is particularly valuable for developers who need to process large volumes of geographic data without manual intervention. It leverages Openclaw Skills capabilities to search, summarize, and geocode locations into structured formats, ensuring high spatial accuracy for logistics, urban planning, and local search applications.

address2lnglat Use Cases

  • Batch converting local points of interest for geospatial visualization projects.
  • Extracting coordinate data from search queries like Tianjin sightseeing spots using Openclaw Skills.
  • Transforming unstructured address lists into machine-readable CSV and JSON datasets.
  • Automating location data enrichment for logistics and delivery route optimization.

How address2lnglat Works

  1. The user provides a target keyword or a list of locations to the AI agent.
  2. The Openclaw Skills agent summarizes the relevant locations into a clean, searchable list.
  3. The user is prompted to provide their Baidu Maps API Access Key (AK) and optional city constraints.
  4. A Python script is executed to query the Baidu Place API and Geocoding API.
  5. The system processes the API response, extracting BD-09 longitude and latitude with 6-decimal precision.
  6. The final dataset is exported as CSV and JSON files and delivered to the user.

address2lnglat Setup

To use this skill, ensure you have Python 3.x and the requests library installed.

pip install requests

Run the script by passing your search query as an argument:

python geocoder.py "Your Search Keyword"

You will need a valid Baidu Maps AK, which can be obtained from the Baidu Maps Open Platform console under the Browser Side Application category.

address2lnglat Data Schema & Taxonomy

The skill produces a structured output with the following schema to ensure compatibility with other Openclaw Skills workflows:

Field Description
ID Sequential identifier for the batch record
Name The formal name of the location
Detailed Address The structured address returned by Baidu
BD-09 Lng Baidu Longitude (6 decimal places)
BD-09 Lat Baidu Latitude (6 decimal places)
Source Indicates if data came from Place API or Geocoding API
Confidence The matching confidence score (0-100)
Status Success or failure state of the conversion

address2lnglat Advanced Features

  • Support for city-level filtering to increase geocoding accuracy and reduce ambiguity.
  • Dual-source retrieval using both Baidu Place and Geocoding APIs for maximum coverage.
  • Native BD-09 output requiring zero coordinate transformation for Baidu Maps integration.
  • Automated batch processing compatible with various Openclaw Skills data pipelines.
  • Detailed confidence scoring to help users validate the precision of geocoded results.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*