AMap (qq9349540): Invoking the AMap API within an Agent to query Chinese geographic data

Introduction

When building data analytics, operational reporting, or conversational assistants, you often encounter requirements such as geocoding addresses, finding nearby POIs (Points of Interest), calculating route duration, or checking weather. Manually assembling HTTP requests requires memorizing a host of Amap (Gaode) Open Platform interfaces and parameters; relying on models to “remember” place names and routes often leads to inaccuracies. The following introduces the community Skill on SkillHub, “Amap Maps (qq9349540)”: it embeds capabilities such as geocoding, POI search, and route planning into the Agent’s SKILL instructions, querying geographic data within China via Amap APIs when needed.

What is this

“Amap Maps (qq9349540)” is an Agent Skill on SkillHub with the coordinate @user_9cef7bd1/amap-qq9349540. The current version is v2.4.0, the source is marked as community, the publisher is user_9cef7bd1, and the category is data-analysis. The official page states: This skill should be used when users need geocoding, POI search, route planning (driving/walking/cycling/transit), coordinate conversion, weather forecasts, batch operations, or data export. It relies on the Amap API and is designed for Chinese geographic data query scenarios.

Core Functions

The following capabilities are derived from the official SkillHub introduction. Once installed and the API key is configured, the Agent will invoke them according to the SKILL guidelines:

  1. Geocoding: Conversion between addresses and coordinates.
  2. POI Search: Searching for Points of Interest by keyword or location.
  3. Route Planning: Supports travel modes including driving, walking, cycling, and public transit.
  4. Coordinate Conversion: Converts between different coordinate systems (commonly used for aligning map and positioning data).
  5. Weather Forecast: Queries weather based on relevant Amap capabilities.
  6. Batch Operations & Data Export: Suitable for processing multiple geographic queries at once or organizing results.

The SkillHub tag requires_api_key=true indicates that you must prepare an Amap Open Platform API Key before use and fill it in according to the Skill’s configuration requirements (refer to the installed SKILL.md for specific variable names).

Installation & Activation

Method 1: Let AI install via official instructions

The installation prompt provided on the SkillHub page is as follows. You can send the original text to your current AI client to execute:

Please install `@user_9cef7bd1/amap-qq9349540` according to https://skillhub.cn/install/skillhub.md.

Method 2: SkillHub CLI

First, confirm whether skillhub is available on your local machine (see SkillHub Installation Docs). When installing the skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it will default to ./skills/, which the Agent might not recognize.

command -v skillhub && skillhub --version
skillhub install @user_9cef7bd1/amap-qq9349540 --dir <skills directory>

Common client skills directory examples (consistent with official installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, refresh or restart according to the client’s requirements to activate the new Skill. The Amap Key must be configured in the location specified in the Skill documentation; calls requiring requires_api_key will typically fail if not configured.

Typical Usage

This Skill is primarily triggered by natural language tasks. When the Agent matches a geographic requirement, it reads the SKILL and calls the Amap API. Question directions aligned with the official introduction include:

  1. Geocode “No. 6 Futong East Street, Chaoyang District, Beijing,” or reverse-lookup an address from given latitude and longitude.
  2. Search for POIs near a specific city or coordinate (e.g., gas stations, subway stations, business district names).
  3. Plan driving, walking, cycling, or transit routes from Point A to Point B, and compare duration and distance.
  4. Perform batch queries on a list of addresses or coordinates and organize the results into an exportable table or file (subject to the export methods supported within the Skill).

Specific request parameters, subcommands, or script paths are subject to the SKILL.md within the installation package; this article does not expand on interface details not listed on the public page.

Scenarios & Precautions

Who is it for: Developers and data analysts needing geographic information queries within China, or teams looking to complete “place searching, route calculation, weather fetching” tasks via conversation in environments like Cursor or Claude Code.

Precautions:

  • Relies on an Amap Open Platform account and API Key; call volume, quotas, and billing are subject to official Amap rules.
  • Data coverage and accuracy depend on the Amap API response; it is not suitable as the sole basis for high-precision surveying or navigation.
  • This is a community-sourced Skill; upgrade and maintenance rhythms follow the publisher. Before installing, you can view version v2.4.0 and the ratings, downloads, and installation statistics on the SkillHub page (Page display: Rating 100000, Downloads 4668, Installs 98).

Conclusion

“Amap Maps (qq9349540)” consolidates common Amap API capabilities into a single Agent Skill, reducing the cost of hand-writing requests and memorizing interfaces. It is suitable for geographic data querying and export in data-analysis scenarios. For installation and details, see SkillHub:

  • Page: https://www.skillhub.cn/skills/user_9cef7bd1/amap-qq9349540
  • API Entry (Skill Metadata): https://api.skillhub.cn/user_9cef7bd1/amap-qq9349540
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye