Baidu Map Integration for Openclaw

Integrate comprehensive Baidu Map Web Service APIs for location searching, geocoding, and routing.

coreyleung-art
v1.0.0
Feb 2, 2026
5
4k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install baidu-map-api

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 baidu-map-api 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 Baidu Map Integration?

The Baidu Map skill provides a bridge between your AI agent and the extensive geospatial data provided by the Baidu Map Web Service API. It allows agents to perform complex tasks such as finding specific points of interest, calculating travel routes, and translating between physical addresses and coordinates. By incorporating this into your Openclaw Skills workflow, you gain access to one of the most accurate mapping services for the Chinese market, enabling location-aware automation and high-fidelity geographic responses.

Baidu Map Integration Use Cases

  • Searching for nearby amenities like restaurants, hospitals, or gas stations.
  • Calculating the most efficient driving or public transit routes between two points.
  • Determining the latitude and longitude of specific addresses for data visualization.
  • Identifying the name of a location based on GPS coordinates using reverse geocoding.
  • Tracking down administrative boundaries and IP-based location estimates.

How Baidu Map Integration Works

  1. The AI agent triggers the skill based on a user prompt involving location or navigation.
  2. The skill extracts relevant parameters like keywords, city names, or coordinates from the request.
  3. A call is executed via curl to the appropriate Baidu Map API endpoint using the provided BAIDU_MAP_AK.
  4. The resulting JSON payload is processed by the agent to filter for relevant data.
  5. The final output is formatted and presented to the user as a technical or conversational response within Openclaw Skills.

Baidu Map Integration Setup

To get started, you must register on the Baidu Map Open Platform to obtain an Access Key (AK). Once you have your AK, configure it as an environment variable to allow Openclaw Skills to authenticate your requests:

export BAIDU_MAP_AK="your_access_key_here"

Ensure that curl is available in your environment as it is required to execute the API calls.

Baidu Map Integration Data Schema & Taxonomy

The skill organizes data based on the specific Baidu Web Service API response. Typical data structures include:

Service Endpoint Purpose Primary Data Types
POI Search Keyword and nearby search JSON objects with address and UID
Geocoding Structuring addresses to coords Lat/Lng coordinate pairs
Route Planning Logistics and travel steps Duration, distance, and direction nodes
District Query Mapping boundaries Polygon coordinate sets for regions

Baidu Map Integration Advanced Features

  • Customizable search radius for hyper-local discovery up to 1000 meters or more.
  • Support for multiple coordinate systems including BD09 for high accuracy in China.
  • Pagination support for large POI result sets using page_size and page_num parameters.
  • Integration with IP-based geolocation for automatic user location detection within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*