腾讯位置服务 WebService API 工具与微信小程序 LBS 指南。Use for: (1) 用附带的零依赖 CLI 查地理编码/POI/路线/IP定位, (2) 微信小程序地图开发(腾讯地图是微信官方推荐), (3) GCJ-02 坐标系避坑。Tencent Maps WebService API CL...
Coding
Map Address Query
Try itMap service address lookup and distance-query workflow. MUST use this skill when the user asks for coordinates (坐标), latitude/longitude, POI locations (e.g.,...
What it does
Map service address lookup and distance-query workflow. MUST use this skill when the user asks for coordinates (坐标), latitude/longitude, POI locations (e.g.,...
The skill document
Map Address Query
First, run ./scripts/qq_map_cli.sh (or .\scripts\qq_map_cli.bat on Windows) to download the CLI tool.
Then, use ./scripts/bin/qq-map-cli (or .\scripts\bin\qq-map-cli.exe on Windows) to query Tencent Location Service from the terminal.
Quick Start
- If the global config file does not exist, create one first:
# On Mac/Linux
./scripts/bin/qq-map-cli setup --config ~/.qq_map_cli_config.json
# On Windows (CMD/PowerShell)
.\scripts\bin\qq-map-cli.exe setup --config %USERPROFILE%\.qq_map_cli_config.json
- If the user already has a Tencent Location Service key, write it directly during setup:
./scripts/bin/qq-map-cli setup --config ~/.qq_map_cli_config.json --key "your-key"
# Windows: .\scripts\bin\qq-map-cli.exe setup --config %USERPROFILE%\.qq_map_cli_config.json --key "your-key"
- The CLI reads the key from one of these places:
--key,QQ_MAP_KEY,--configfile path. - Always append the global config flag:
--config ~/.qq_map_cli_config.json(or--config %USERPROFILE%\.qq_map_cli_config.jsonon Windows) to all commands. - Run the bundled CLI from the skill directory:
./scripts/bin/qq-map-cli ...(or.\scripts\bin\qq-map-cli.exeon Windows). - Prefer
--jsonwhen another script or workflow needs structured output.
How to get Tencent Location Service key
- visit https://lbs.qq.com/dev/console/application/mine
- click "创建应用" button to create a new application
- click "添加key" button to add a new key
- copy the "Key" value to the
--keyflag
Commands
Geocode One Address
Use geocoder when the user wants latitude/longitude or structured address fields for one place.
./scripts/bin/qq-map-cli geocoder \
--config ~/.qq_map_cli_config.json \
--address "北京市海淀区彩和坊路海淀西大街74号"
# Windows: .\scripts\bin\qq-map-cli.exe geocoder --config %USERPROFILE%\.qq_map_cli_config.json --address "..."
Measure Distance Between Two Named Addresses
Use address-distance when the user asks for the distance or travel time between two address names.
./scripts/bin/qq-map-cli address-distance \
--config ~/.qq_map_cli_config.json \
--from-address "北京市海淀区中关村大街27号" \
--to-address "北京市朝阳区望京街10号" \
--mode driving
# Windows: .\scripts\bin\qq-map-cli.exe address-distance --config %USERPROFILE%\.qq_map_cli_config.json ...
Run Coordinate or Matrix Queries
Use distance-matrix when the user already has coordinates, needs one-to-many or many-to-many queries, or wants raw from and to payload control.
./scripts/bin/qq-map-cli distance-matrix \
--config ~/.qq_map_cli_config.json \
--origin 39.984154,116.307490 \
--destination 39.908692,116.397477 \
--mode walking
# Windows: .\scripts\bin\qq-map-cli.exe distance-matrix --config %USERPROFILE%\.qq_map_cli_config.json ...
Workflow
- Check whether a global config already exists at
~/.qq_map_cli_config.json(or%USERPROFILE%\.qq_map_cli_config.json) orQQ_MAP_KEY. - If neither exists, run
setupwith the global--configflag to create the config file in the user's home directory. - If the user can provide the Tencent key immediately, prefer
setup --config ~/.qq_map_cli_config.json --key "..."so the config is complete in one step. - If the key is still missing after setup, stop and ask the user for the Tencent Location Service key instead of trying live queries.
- After the user provides the key, immediately persist it globally by running
setup --config ~/.qq_map_cli_config.json --key "..." --force. - Treat
~/.qq_map_cli_config.jsonas a globally persistent config so the user does not need to configure it again for queries in other directories. - Start with the fullest address available, including city and district, to improve geocoder accuracy.
- Use
address-distanceby default for natural-language requests like "这两个地址相距多远". - Switch to
distance-matrixfor batch routing, coordinate-based inputs, or advanced raw payloads. - Retry with
--policy 1when the user gives a shorter or fuzzier address and strict parsing looks too brittle. - Change
--modetowalking,bicycling, orstraightwhen the user asks for non-driving results. - Keep API keys in the user's workspace config or environment variables, not inside the skill folder.
Output Notes
- Default output is human-readable and suited to chat replies.
--jsonreturns raw API responses for downstream automation.address-distance --jsonreturns both geocoder responses and the final distance-matrix response in one object.
Troubleshooting
- SSL Certificate Error on macOS: If you see
[SSL: CERTIFICATE_VERIFY_FAILED], run the downloaded binary withSSL_CERT_FILE=/etc/ssl/cert.pem ./scripts/bin/qq-map-cli ...to manually point to macOS's certificates.
Related skills
百度地图 Web 服务 API 工具与 BD-09 坐标系指南。Use for: (1) 用附带的零依赖 CLI 查地理编码/POI/路线并做坐标系转换, (2) BD-09 与 WGS-84/GCJ-02 互转避坑, (3) 百度地图开放平台开发指导。Baidu Maps Web API CLI (zero-d...
高德地图 Web API 工具与开发指南。Use for: (1) 用附带的零依赖 CLI 直接查地理编码/POI/路线/天气/IP定位, (2) 中国坐标系(WGS-84/GCJ-02/BD-09)转换与避坑, (3) 高德全套 Web Service API 开发指导。Amap (Gaode) Web API...
全能出行管家技能 — 处理出行规划/行程安排/出差旅游等场景,整合高德地图(路线/天气/周边)与途牛旅行(机票/酒店/火车票/门票**价格查询与比价**)服务,提供场景识别、智能比价、行程规划与行程网页生成。能力与副作用完整披露:(1) 从环境变量读取 AMAP_API_KEY、TUNIU_API_KEY 用于本次查询调用,不跨会话上传第三方;本技能包不含任何密钥文件;(2) **仅调用查询/搜索类接口**(searchLowestPriceFlight / tuniu_hotel_search / searchLowestPriceTrain / query_cheapest_tickets
Use SF Express (顺丰速运) for shipment tracking, delivery anomaly triage, e-commerce seller/customer handoffs, shipping guidance, service-type comparison, outlet...
Manage Tencent Meeting scheduling, members, recordings, transcripts, and smart minutes through a unified MCP toolset.