OneKey Gateway
Use One Access Key to connect to various commercial APIs. Please visit the
OneKey Gateway Keys and read the docs
OneKey MCP Router Doc and
OneKey Gateway Doc.
baidu-maps-sse Skill
Use the OneKey Gateway to access tools for this server via a unified access key.
Quick Start
Set your OneKey access key:
export DEEPNLP_ONEKEY_ROUTER_ACCESS=YOUR_API_KEY
If no key is provided, the scripts fall back to the demo key
BETA_TEST_KEY_MARCH_2026.
Common settings:
- -
unique_id: INLINECODE2 - INLINECODE3 : one of the tools listed below
Tools
maps_geocode
Convert an address into geographic coordinates
Parameters:
- -
address (string, required): The address to geocode
maps_reverse_geocode
Convert coordinates into an address
Parameters:
- -
latitude (number, required): Latitude coordinate - INLINECODE8 (number, required): Longitude coordinate
maps_search_places
Search for places using Google Places API
Parameters:
- -
query (string, required): Search query - INLINECODE11 (object, optional): Optional center point for the search
- INLINECODE12 (number, optional):
- INLINECODE13 (number, optional):
- INLINECODE14 (number, optional): Search radius in meters (max 50000)
maps_place_details
Get detailed information about a specific place
Parameters:
- -
place_id (string, required): The place ID to get details for
maps_distance_matrix
Calculate travel distance and time for multiple origins and destinations
Parameters:
- -
origins (array of string, required): Array of origin addresses or coordinates - INLINECODE19 (array of string, required): Array of destination addresses or coordinates
- INLINECODE20 (string, optional): Travel mode (driving, walking, bicycling, transit) Values: driving, walking, bicycling, transit
maps_elevation
Get elevation data for locations on the earth
Parameters:
- -
locations (array of object, required): Array of locations to get elevation for - INLINECODE23 (number, required):
- INLINECODE24 (number, required):
maps_directions
Get directions between two points
Parameters:
- -
origin (string, required): Starting point address or coordinates - INLINECODE27 (string, required): Ending point address or coordinates
- INLINECODE28 (string, optional): Travel mode (driving, walking, bicycling, transit) Values: driving, walking, bicycling, transit
Usage
CLI
maps_geocode
CODEBLOCK1
mapsreversegeocode
CODEBLOCK2
mapssearchplaces
CODEBLOCK3
mapsplacedetails
CODEBLOCK4
mapsdistancematrix
CODEBLOCK5
maps_elevation
CODEBLOCK6
maps_directions
CODEBLOCK7
Scripts
Each tool has a dedicated script in this folder:
- - INLINECODE29
- INLINECODE30
- INLINECODE31
- INLINECODE32
- INLINECODE33
- INLINECODE34
- INLINECODE35
Example
CODEBLOCK8
Related DeepNLP OneKey Gateway Documents
AI Agent Marketplace
Skills Marketplace
AI Agent A2Z Deployment
PH AI Agent A2Z Infra
GitHub AI Agent Marketplace
Dependencies
CLI Dependency
Install onekey-gateway from npm
CODEBLOCK9
Script Dependency
Install the required Python package before running any scripts.
CODEBLOCK10
Alternatively, install dependencies from the requirements file:
CODEBLOCK11
If the package is already installed, skip installation.
Agent rule
Before executing command lines or running any script in the scripts/ directory, ensure the dependencies are installed.
Use the
onekey CLI as the preferred method to run the skills.
OneKey 网关
使用一个访问密钥即可连接多种商业API。请访问
OneKey 网关密钥 并阅读文档
OneKey MCP 路由器文档 和
OneKey 网关文档。
baidu-maps-sse 技能
通过统一访问密钥,使用 OneKey 网关访问此服务器的工具。
快速开始
设置您的 OneKey 访问密钥:
bash
export DEEPNLP
ONEKEYROUTER
ACCESS=YOURAPI_KEY
如果未提供密钥,脚本将回退使用演示密钥 BETATESTKEYMARCH2026。
通用设置:
- - uniqueid:baidu-maps-sse/baidu-maps-sse
- apiid:下列工具之一
工具
maps_geocode
将地址转换为地理坐标
参数:
- - address(字符串,必填):需要编码的地址
mapsreversegeocode
将坐标转换为地址
参数:
- - latitude(数字,必填):纬度坐标
- longitude(数字,必填):经度坐标
mapssearchplaces
使用 Google Places API 搜索地点
参数:
- - query(字符串,必填):搜索查询
- location(对象,可选):可选的搜索中心点
- location.latitude(数字,可选):
- location.longitude(数字,可选):
- radius(数字,可选):搜索半径,单位为米(最大 50000)
mapsplacedetails
获取特定地点的详细信息
参数:
- - place_id(字符串,必填):要获取详情的地点 ID
mapsdistancematrix
计算多个起点和终点之间的行驶距离和时间
参数:
- - origins(字符串数组,必填):起点地址或坐标数组
- destinations(字符串数组,必填):终点地址或坐标数组
- mode(字符串,可选):出行方式(驾车、步行、骑行、公交) 取值:driving, walking, bicycling, transit
maps_elevation
获取地球表面位置的海拔数据
参数:
- - locations(对象数组,必填):需要获取海拔的位置数组
- locations[].latitude(数字,必填):
- locations[].longitude(数字,必填):
maps_directions
获取两点之间的导航路线
参数:
- - origin(字符串,必填):起点地址或坐标
- destination(字符串,必填):终点地址或坐标
- mode(字符串,可选):出行方式(驾车、步行、骑行、公交) 取值:driving, walking, bicycling, transit
使用方法
命令行
maps_geocode
shell
npx onekey agent baidu-maps-sse/baidu-maps-sse maps_geocode {address: Times Square, New York}
mapsreversegeocode
shell
npx onekey agent baidu-maps-sse/baidu-maps-sse maps
reversegeocode {latitude: 40.758, longitude: -73.9855}
mapssearchplaces
shell
npx onekey agent baidu-maps-sse/baidu-maps-sse maps
searchplaces {query: Italian restaurants, location: {latitude: 40.758, longitude: -73.9855}, radius: 500}
mapsplacedetails
shell
npx onekey agent baidu-maps-sse/baidu-maps-sse maps
placedetails {place_id: ChIJmQJIxlVYwokRLgeuocVOGVU}
mapsdistancematrix
shell
npx onekey agent baidu-maps-sse/baidu-maps-sse maps
distancematrix {origins: [Times Square, NY], destinations: [Central Park, NY], mode: driving}
maps_elevation
shell
npx onekey agent baidu-maps-sse/baidu-maps-sse maps_elevation {locations: [{latitude: 36.057944, longitude: -112.125168}]}
maps_directions
shell
npx onekey agent baidu-maps-sse/baidu-maps-sse maps_directions {origin: Golden Gate Bridge, destination: Ferry Building San Francisco, mode: driving}
脚本
每个工具在此文件夹中都有专用脚本:
- - skills/baidu-maps-sse/scripts/mapsgeocode.py
- skills/baidu-maps-sse/scripts/mapsreversegeocode.py
- skills/baidu-maps-sse/scripts/mapssearchplaces.py
- skills/baidu-maps-sse/scripts/mapsplacedetails.py
- skills/baidu-maps-sse/scripts/mapsdistancematrix.py
- skills/baidu-maps-sse/scripts/mapselevation.py
- skills/baidu-maps-sse/scripts/maps_directions.py
示例
bash
python3 scripts/
.py --data {key: value}
相关 DeepNLP OneKey 网关文档
AI 智能体市场
技能市场
AI 智能体 A2Z 部署
PH AI 智能体 A2Z 基础设施
GitHub AI 智能体市场
依赖项
命令行依赖项
从 npm 安装 onekey-gateway
npm install @aiagenta2z/onekey-gateway
脚本依赖项
在运行任何脚本之前,请安装所需的 Python 包。
bash
pip install ai-agent-marketplace
或者,从 requirements 文件安装依赖项:
bash
pip install -r requirements.txt
如果包已安装,请跳过安装。
智能体规则
在执行命令行或运行 scripts/ 目录中的任何脚本之前,请确保依赖项已安装。
建议使用 onekey 命令行作为运行技能的首选方法。