Install
openclaw skills install map-route-reader直接读取高德 / 百度地图上的真实路线结果,返回用户能照着走的公交、地铁、打车或步行方案。适用于用户问怎么从 A 到 B、哪条线路更快、哪条路线更省事、打车是不是更方便、是否有更优替代路线时使用。重点不是给模糊估计,而是尽量给真实可执行路线。
openclaw skills install map-route-reader把“地图路线查询”变成更像结果型产品的 skill:不是只说个大概时间,而是尽量把真实路线读出来,整理成用户可以立刻参考的出行方案。
直接读取高德 / 百度地图上的真实路线结果,优先返回用户能照着走的公交、地铁、打车或步行方案。
很多同类路线能力看起来很强,但实际要:
这个 skill 主打的是:
Use this skill when the user asks for:
Return a route the user can actually follow. Do not stop at vague estimates when a real route can be extracted.
Priority:
uriapi route pages with lnglat when coordinates are availableIf you can get origin/destination coordinates, prefer opening a direct Amap route URL like:
https://ditu.amap.com/dir?type=bus&policy=2&from[lnglat]=<lng,lat>&from[name]=...&to[lnglat]=<lng,lat>&to[name]=...&src=uriapi&innersrc=uriapi&dateTime=now
Why:
document.body.innerTextAfter the recommended route card renders, the full step-by-step transit detail may exist in the hidden sibling node right after the current .planTitle (for example an ol.p_route).
Do not stop at total duration. Read that hidden detail block and extract:
If the site asks to confirm the start/end place, or the route card is hidden behind dynamic UI:
For Amap/Baidu route pages, the isolated browser may resolve the wrong city or fail to expand the route card. If the page shows the wrong city, cannot resolve start/end places, or keeps asking to choose the correct place, switch early to the user's map tab via Browser Relay and read the live route result there.
Switch to the user’s browser tab via Browser Relay.
If the user asks whether a specific route/line would be better, for example:
then you must:
Do not guess. Do not answer from intuition alone. Do not say “应该不会” or “大概率更慢” unless the alternate route has been pulled out and compared.
For a single route, return in this structure:
If route detail is available, include:
For a route comparison, return side-by-side: