maps
它能做什么
这项技能为你的 AI 提供基于免费开放地图数据的位置工具。适合希望在不使用付费地图服务的情况下,查询地址、附近地点、路线或时区的人。
适用场景
- ✓你询问某个位置附近的餐厅、药店或酒店的时候。
- ✓你想了解两地之间驾车、步行或骑行的距离或时间的时候。
- ✓你想获取两地之间的逐向导航,或坐标对应的地址的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/skills/productivity/maps/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请找到埃菲尔铁塔附近的药店,并告诉我从我的酒店步行过去需要多久。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能运行一个无需额外软件包的 Python 脚本。它使用 OpenStreetMap 及相关的开放服务查询地点和路线,然后报告结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Maps Skill
Location intelligence using free, open data sources. 8 commands, 44 POI categories, zero dependencies (Python stdlib only), no API key required.
Data sources: OpenStreetMap/Nominatim, Overpass API, OSRM, TimeAPI.io.
This skill supersedes the old find-nearby skill — all of find-nearby's
functionality is covered by the nearby command below, with the same
--near "<place>" shortcut and multi-category support.
When to Use
- User sends a Telegram location pin (latitude/longitude in the message) →
nearby - User wants coordinates for a place name →
search - User has coordinates and wants the address →
reverse - User asks for nearby restaurants, hospitals, pharmacies, hotels, etc. →
nearby - User wants driving/walking/cycling distance or travel time →
distance - User wants turn-by-turn directions between two places →
directions - User wants timezone information for a location →
timezone - User wants to search for POIs within a geographic area →
area+bbox
Prerequisites
Python 3.8+ (stdlib only — no pip installs needed).
Script path: ~/.hermes/skills/maps/scripts/maps_client.py
Commands
MAPS=~/.hermes/skills/maps/scripts/maps_client.py
search — Geocode a place name
python $MAPS search "Eiffel Tower"
python $MAPS search "1600 Pennsylvania Ave, Washington DC"
Returns: lat, lon, display name, type, bounding box, importance score.
reverse — Coordinates to address
python $MAPS reverse 48.8584 2.2945
Returns: full address breakdown (street, city, state, country, postcode).
nearby — Find places by category
# By coordinates (from a Telegram location pin, for example)
python $MAPS nearby 48.8584 2.2945 restaurant --limit 10
python $MAPS nearby 40.7128 -74.0060 hospital --radius 2000
# By address / city / zip / landmark — --near auto-geocodes
python $MAPS nearby --near "Times Square, New York" --category cafe
python $MAPS nearby --near "90210" --category pharmacy
# Multiple categories merged into one query
python $MAPS nearby --near "downtown austin" --category restaurant --category bar --limit 10
46 categories: restaurant, cafe, bar, hospital, pharmacy, hotel, guest_house, camp_site, supermarket, atm, gas_station, parking, museum, park, school, university, bank, police, fire_station, library, airport, train_station, bus_stop, church, mosque, synagogue, dentist, doctor, cinema, theatre, gym, swimming_pool, post_office, convenience_store, bakery, bookshop, laundry, car_wash, car_rental, bicycle_rental, taxi, veterinary, zoo, playground, stadium, nightclub.
Each result includes: name, address, lat/lon, distance_m,
maps_url (clickable Google Maps link), directions_url (Google Maps
directions from the search point), and promoted tags when available —
cuisine, hours (opening_hours), phone, website.
distance — Travel distance and time
python $MAPS distance "Paris" --to "Lyon"
python $MAPS distance "New York" --to "Boston" --mode driving
python $MAPS distance "Big Ben" --to "Tower Bridge" --mode walking
Modes: driving (default), walking, cycling. Returns road distance, duration, and straight-line distance for comparison.
directions — Turn-by-turn navigation
python $MAPS directions "Eiffel Tower" --to "Louvre Museum" --mode walking
python $MAPS directions "JFK Airport" --to "Times Square" --mode driving
Returns numbered steps with instruction, distance, duration, road name, and maneuver type (turn, depart, arrive, etc.).
timezone — Timezone for coordinates
python $MAPS timezone 48.8584 2.2945
python $MAPS timezone 35.6762 139.6503
Returns timezone name, UTC offset, and current local time.
area — Bounding box and area for a place
python $MAPS area "Manhattan, New York"
python $MAPS area "London"
Returns bounding box coordinates, width/height in km, and approximate area. Useful as input for the bbox command.
bbox — Search within a bounding box
python $MAPS bbox 40.75 -74.00 40.77 -73.98 restaurant --limit 20
Finds POIs within a geographic rectangle. Use area first to get the
bounding box coordinates for a named place.
Working With Telegram Location Pins
When a user sends a location pin, the message contains latitude: and
longitude: fields. Extract those and pass them straight to nearby:
# User sent a pin at 36.17, -115.14 and asked "find cafes nearby"
python $MAPS nearby 36.17 -115
常见问题
需要 API 密钥吗?
不需要。技能说明无需 API 密钥,它使用免费的开放数据。
它能查找哪些类型的地点?
技能涵盖 44 类兴趣点,例如餐厅、医院和药店。
它能取代导航应用吗?
技能提供路线和出行时间,但没有提及实时交通数据。
详情
热度
- GitHub 星标
- 260k
- 排名
- #608
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。