baidu-map-api使用百度地图Web服务API进行地点搜索、天气查询、路线规划和地理编码。
Install via ClawdBot CLI:
clawdbot install coreyleung-art/baidu-map-apiRequires:
本技能使用百度地图 Web 服务 API 提供丰富的地理位置服务。
重要: 使用本技能前,你必须在百度地图开放平台申请一个应用,并获取 Access Key (AK),然后将其设置为环境变量 BAIDU_MAP_AK。
export BAIDU_MAP_AK="你的百度地图Access Key"
Clawdbot 会自动读取这个环境变量来调用 API。
当用户提出以下类型的请求时,应优先使用本技能:
用于根据关键字在指定区域搜索地点信息。
# 将 [关键词] 替换为用户提供的内容
# region参数可以是城市名或区域名
curl "https://api.map.baidu.com/place/v2/search?query=[关键词]®ion=全国&output=json&ak=$BAIDU_MAP_AK"
# 或者指定具体城市
curl "https://api.map.baidu.com/place/v2/search?query=[关键词]®ion=广州&output=json&ak=$BAIDU_MAP_AK"
用于在特定城市内搜索地点,结果更精确。
# 将 [关键词] 和 [城市] 替换为实际内容
curl "https://api.map.baidu.com/place/v2/search?query=[关键词]®ion=[城市]&output=json&ak=$BAIDU_MAP_AK"
用于在指定坐标点周围搜索特定类型的地点。
# 将 [经度,纬度] 替换为实际坐标,radius为搜索半径(米)
curl "https://api.map.baidu.com/place/v2/search?query=花店&location=[纬度],[经度]&radius=1000&output=json&ak=$BAIDU_MAP_AK"
将结构化的地址信息转换为经纬度坐标。
# 将 [地址] 替换为用户提供的地址
curl "https://api.map.baidu.com/geocoding/v3/?address=[地址]&output=json&ak=$BAIDU_MAP_AK"
将经纬度坐标转换为结构化的地址信息。
# 将 [经度,纬度] 替换为实际坐标
curl "https://api.map.baidu.com/reverse_geocoding/v3/?coordtype=wgs84ll&location=[纬度],[经度]&output=json&ak=$BAIDU_MAP_AK"
用于规划两个地点之间的驾车路线。
# 将 [起点] 和 [终点] 替换为实际地址或坐标
# 起终点可以用地址表示,也可以用经纬度表示
curl "https://api.map.baidu.com/direction/v2/driving?origin=[起点]&destination=[终点]&output=json&ak=$BAIDU_MAP_AK"
# 使用经纬度坐标的示例
curl "https://api.map.baidu.com/direction/v2/driving?origin=39.90923,116.397428&destination=31.230416,121.473701&output=json&ak=$BAIDU_MAP_AK"
用于规划两个地点之间的步行路线。
# 将 [起点] 和 [终点] 替换为实际地址或坐标
curl "https://api.map.baidu.com/direction/v2/walking?origin=[起点]&destination=[终点]&output=json&ak=$BAIDU_MAP_AK"
用于规划两个地点之间的公交路线。
# 将 [起点] 和 [终点] 替换为实际地址或坐标
curl "https://api.map.baidu.com/direction/v2/transit?origin=[起点]&destination=[终点]&output=json&ak=$BAIDU_MAP_AK"
用于查询行政区域的边界坐标点集合。
# 将 [行政区名称] 替换为实际的省市区名称
curl "https://api.map.baidu.com/district/v1/getdistrict?qt=dis&level=city&names=[行政区名称]&ak=$BAIDU_MAP_AK"
根据IP地址获取大致的地理位置信息。
# 将 [IP地址] 替换为实际IP,若不提供则使用当前客户端IP
curl "https://api.map.baidu.com/location/ip?ip=[IP地址]&ak=$BAIDU_MAP_AK"
如果API返回错误,通常是以下原因之一:
Generated Mar 1, 2026
Users can search for nearby businesses like restaurants or shops using POI retrieval. This is useful for finding services in a specific city or around a location, aiding in daily errands or travel planning.
Businesses can use driving, walking, or transit route planning to optimize delivery paths between addresses or coordinates. This helps reduce travel time and costs for couriers or field service teams.
Agents can perform geocoding to convert addresses to coordinates and use surrounding searches to assess neighborhood amenities. This supports property valuation and marketing by highlighting nearby facilities.
Tourists can query weather, find attractions via place searches, and plan routes between destinations. This enhances trip planning by providing location-based information and navigation options.
Organizations can use IP location and reverse geocoding to identify user positions for dispatch or safety checks. This aids in rapid response and resource allocation during incidents.
Offer access to Baidu Map APIs through tiered subscription plans based on usage volume, such as number of API calls per month. This generates recurring revenue from developers and businesses integrating location services.
Provide customized mapping interfaces for enterprises in sectors like logistics or real estate, embedding Baidu Map functionalities into their own applications. Revenue comes from licensing fees and implementation support.
Analyze location data from API usage to offer insights on consumer behavior or geographic trends to businesses. Monetize through data reports and consulting services for market research.
💬 Integration Tip
Ensure the BAIDU_MAP_AK environment variable is set correctly before making API calls to avoid authentication errors.
Automate Xiaohongshu (RedNote) content operations using a Python client for the xiaohongshu-mcp server. Use for: (1) Publishing image, text, and video content, (2) Searching for notes and trends, (3) Analyzing post details and comments, (4) Managing user profiles and content feeds. Triggers: xiaohongshu automation, rednote content, publish to xiaohongshu, xiaohongshu search, social media management.
Feishu-integrated wrapper for the capability-evolver. Manages the evolution loop lifecycle (start/stop/ensure), sends rich Feishu card reports, and provides...
The Baidu Baike Component is a knowledge service tool designed to query authoritative encyclopedia explanations for various nouns. Its core function is given a specific "noun" (object, person, location, concept, event, etc.) provided by the user, it returns a standardized, detailed entry explanation sourced from Baidu Baike.
Draft and publish posts to 小红书 (Xiaohongshu/RED). Use when creating content for 小红书, drafting posts, generating cover images, or publishing via browser automation. Covers the full workflow from content creation to browser-based publishing, including cover image generation with Pillow.
AI-assisted creation, rendering, and automated publishing of Xiaohongshu-style content with support for Markdown to image cards and data tracking.
小红书全能助手 — 文案生成、封面制作、内容发布与管理。当用户要求写小红书笔记、生成小红书文案/标题/封面、发小红书、搜索小红书、评论点赞收藏等任何小红书相关操作时使用。支持一站式从文案创作到自动发布的完整流程。封面AI生图需配置可选环境变量(GEMINI_API_KEY 或 IMG_API_KEY 或 HUNY...