360 Secure SkillHub
360 安全技能中心

Google Maps Skill

通过 bun 脚本调用 Google Maps Platform API,提供地理编码、逆地理编码、路线规划、地点搜索、地点详情、海拔和时区查询;坐标使用 lat,lng 顺序,输出原始 Google Maps JSON,API 业务错误按失败处理,不运行 MCP 服务。

deusyu
deusyu
热度 70.94
最近更新 2026-05-11 17:31:12
分类:生活依赖:代码执行 / 第三方 API应用场景:旅行

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add google-maps-skill
Metadata
name
gmaps
description
通过脚本直连 Google Maps Platform API 完成地理编码、逆地理编码、路线规划、地点搜索、地点详情、海拔查询和时区查询。用户要求"Google Maps 查询""国际路线规划""地点搜索"或需要用命令行脚本调用 Google Maps API 时使用。

Google Maps Skill

Quick Start

  1. Ensure GOOGLE_MAPS_API_KEY is set.
  2. Run bun scripts/gmaps.ts --help in this skill directory.
  3. Pick the matching command from references/command-map.md.

Workflow

  1. Validate user intent and select one command.
  2. Coordinates use lat,lng order (Google convention).
  3. Keep output as raw Google Maps JSON without wrapping fields.
  4. Treat any API business error as failure.

Commands

  • Full command mapping: references/command-map.md
  • Ready-to-run examples: references/examples.md

Notes

  • This skill is script-first and does not run an MCP server.
  • Only GOOGLE_MAPS_API_KEY is supported.