← 返回 Skills 市场
ai-hub-admin

Google Maps

作者 AI-Hub-Admin · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
107
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install google-maps-onekey-gateway
功能描述
Google Maps tools via OneKey Gateway (geocode, places, distance matrix, elevation, directions).
使用说明 (SKILL.md)

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.

Dependencies

CLI Dependency

Install onekey-gateway from npm

npm install @aiagenta2z/onekey-gateway

Script Dependency

Install the required Python package before running any scripts.

pip install ai-agent-marketplace

Alternatively, install dependencies from the requirements file:

pip install -r requirements.txt

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. And please use the command line "onekey" as the preferred method to run the skills.

Google Maps Skill

Use the OneKey Gateway to access Google Maps APIs through a unified access key.

Quick Start

Set your OneKey Access Key

In the .env file

DEEPNLP_ONEKEY_ROUTER_ACCESS=YOUR_API_KEY

or alternatively set via export.

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: google-maps/google-maps
  • api_id: 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.
  • longitude (number, required): Longitude coordinate.

maps_search_places

Search for places using Google Places API.

Parameters:

  • query (string, required): Search query.
  • location (object, optional): Optional center point for the search.
  • location.latitude (number, optional): Latitude for the center point.
  • location.longitude (number, optional): Longitude for the center point.
  • radius (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.
  • destinations (array of string, required): Array of destination addresses or coordinates.
  • mode (string, optional): Travel mode (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.
  • locations[].latitude (number, required): Latitude coordinate.
  • locations[].longitude (number, required): Longitude coordinate.

maps_directions

Get directions between two points.

Parameters:

  • origin (string, required): Starting point address or coordinates.
  • destination (string, required): Ending point address or coordinates.
  • mode (string, optional): Travel mode (driving, walking, bicycling, transit).

Usage

CLI

maps_geocode

npx onekey agent google-maps/google-maps maps_geocode '{"address": "Times Square, New York"}'

maps_reverse_geocode

npx onekey agent google-maps/google-maps maps_reverse_geocode '{"latitude": 40.758, "longitude": -73.9855}'

maps_search_places

npx onekey agent google-maps/google-maps maps_search_places '{"query": "Italian restaurants", "location": {"latitude": 40.758, "longitude": -73.9855}, "radius": 500}'

maps_place_details

npx onekey agent google-maps/google-maps maps_place_details '{"place_id": "ChIJmQJIxlVYwokRLgeuocVOGVU"}'

maps_distance_matrix

npx onekey agent google-maps/google-maps maps_distance_matrix '{"origins": ["Times Square, NY"], "destinations": ["Central Park, NY"], "mode": "driving"}'

maps_elevation

npx onekey agent google-maps/google-maps maps_elevation '{"locations": [{"latitude": 36.057944, "longitude": -112.125168}]}'

maps_directions

npx onekey agent google-maps/google-maps maps_directions '{"origin": "Golden Gate Bridge", "destination": "Ferry Building San Francisco", "mode": "driving"}'

Scripts

Each tool has a dedicated script in skills/google-maps/scripts/:

  • skills/google-maps/scripts/maps_geocode.py
  • skills/google-maps/scripts/maps_reverse_geocode.py
  • skills/google-maps/scripts/maps_search_places.py
  • skills/google-maps/scripts/maps_place_details.py
  • skills/google-maps/scripts/maps_distance_matrix.py
  • skills/google-maps/scripts/maps_elevation.py
  • skills/google-maps/scripts/maps_directions.py

Examples

python3 skills/google-maps/scripts/maps_geocode.py --address "1600 Amphitheatre Parkway, Mountain View, CA"
python3 skills/google-maps/scripts/maps_reverse_geocode.py --latitude 37.422 --longitude -122.084
python3 skills/google-maps/scripts/maps_search_places.py --query "coffee" --location 37.422,-122.084 --radius 1500
python3 skills/google-maps/scripts/maps_place_details.py --place-id "ChIJ2eUgeAK6j4ARbn5u_wAGqWA"
python3 skills/google-maps/scripts/maps_distance_matrix.py --origins "Boston, MA" --destinations "New York, NY" --mode driving
python3 skills/google-maps/scripts/maps_elevation.py --locations "37.422,-122.084;37.427,-122.085"
python3 skills/google-maps/scripts/maps_directions.py --origin "Boston, MA" --destination "New York, NY" --mode driving

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

npm install @aiagenta2z/onekey-gateway

Script Dependency

Install the required Python package before running any scripts.

pip install ai-agent-marketplace

Alternatively, install dependencies from the requirements file:

pip install -r requirements.txt

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.

安全使用建议
This skill appears to be a straightforward wrapper that forwards requests to a OneKey Gateway which in turn calls Google Maps APIs. Before installing: - Confirm the registry metadata vs. SKILL.md mismatch: the skill requires DEEPNLP_ONEKEY_ROUTER_ACCESS even though the registry listed no env vars. - Do not rely on the demo fallback key (BETA_TEST_KEY_MARCH_2026) for sensitive queries — it sends your location/addresses to the OneKey provider. Provide your own gateway key if you trust the provider, or prefer a direct Google Maps API integration instead. - Review the upstream npm (@aiagenta2z/onekey-gateway) and PyPI (ai-agent-marketplace) packages and their homepages/source to ensure you trust those maintainers. - If privacy or data residency matters, ask the provider how request/response data is logged and retained by the OneKey gateway. If you want me to, I can fetch the package pages for the listed dependencies (npm/PyPI) and check their source/homepages for additional signal.
功能分析
Type: OpenClaw Skill Name: google-maps-onekey-gateway Version: 0.1.0 The skill bundle provides a legitimate set of tools for interacting with Google Maps APIs via the OneKey Gateway service. The Python scripts (e.g., maps_geocode.py, maps_directions.py) are straightforward wrappers that use the ai-agent-marketplace library to send requests to a centralized API router. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found, and the behavior is entirely consistent with the stated purpose of providing a unified gateway for mapping services.
能力评估
Purpose & Capability
The name/description (Google Maps via OneKey Gateway) matches the included scripts and the declared dependency on a OneKey router. However the registry metadata listed 'required env vars: none' while SKILL.md and all scripts require DEEPNLP_ONEKEY_ROUTER_ACCESS — an inconsistency between metadata and the runtime instructions.
Instruction Scope
SKILL.md instructs installation of the OneKey CLI and a Python package and to set DEEPNLP_ONEKEY_ROUTER_ACCESS. The scripts only read that env var (with a demo fallback), build a OneKeyAgentRouter, invoke the specified maps_* api_id, and print JSON. They do not read other system files or unrelated env vars. Note: the scripts fall back to a shared demo key (BETA_TEST_KEY_MARCH_2026) if no key is set, which will send any queries to the OneKey provider.
Install Mechanism
No arbitrary downloads; installation is via pip (ai-agent-marketplace) and npm (@aiagenta2z/onekey-gateway). These are standard package installs (trackable via PyPI/NPM) and there is no extract-from-URL behavior present. Review the upstream package sources before installing.
Credentials
The only runtime secret required is DEEPNLP_ONEKEY_ROUTER_ACCESS, which is appropriate for a gateway-based integration. The inconsistency is that registry metadata omitted this required env var. Also the built-in fallback demo key means sensitive queries will be sent to the OneKey provider if the user does not supply their own key.
Persistence & Privilege
The skill does not request elevated persistence (always:false), does not modify other skills or system-wide settings, and is user-invocable. Autonomous invocation is allowed by default on the platform and is not in itself a new concern here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install google-maps-onekey-gateway
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /google-maps-onekey-gateway 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release: Provides Google Maps tools through OneKey Gateway with unified access and usage. - Supports address geocoding and reverse geocoding. - Enables place search, place details lookup, distance matrix, elevation data, and directions via Google Maps APIs. - Allows usage via both CLI (npm onekey agent) and Python scripts. - Requires OneKey Gateway API key; falls back to demo key if not set. - Includes clear setup and usage instructions for both CLI and scripting environments.
元数据
Slug google-maps-onekey-gateway
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Google Maps 是什么?

Google Maps tools via OneKey Gateway (geocode, places, distance matrix, elevation, directions). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 107 次。

如何安装 Google Maps?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install google-maps-onekey-gateway」即可一键安装,无需额外配置。

Google Maps 是免费的吗?

是的,Google Maps 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Google Maps 支持哪些平台?

Google Maps 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Google Maps?

由 AI-Hub-Admin(@ai-hub-admin)开发并维护,当前版本 v0.1.0。

💬 留言讨论