渠道位置解析
OpenClaw 将聊天渠道共享的位置规范化为:- 追加到入站正文的人类可读文本,以及
- 自动回复上下文 payload 中的结构化字段。
- Telegram(位置钉点 + 场所 + 实时位置)
- WhatsApp(locationMessage + liveLocationMessage)
- Matrix(带
geo_uri的m.location)
Text formatting
位置会以友好的行展示(不含方括号):- 钉点:
📍 48.858844, 2.294351 ±12m
- 命名地点:
📍 Eiffel Tower — Champ de Mars, Paris (48.858844, 2.294351 ±12m)
- 实时共享:
🛰 Live location: 48.858844, 2.294351 ±12m
Context fields
当位置存在时,这些字段会加入ctx:
LocationLat(number)LocationLon(number)LocationAccuracy(number,米;可选)LocationName(string;可选)LocationAddress(string;可选)LocationSource(pin | place | live)LocationIsLive(boolean)
Channel notes
- Telegram:venue 映射到
LocationName/LocationAddress;实时位置使用live_period。 - WhatsApp:
locationMessage.commentandliveLocationMessage.captionare appended as the caption line. - Matrix:
geo_uri解析为钉点位置;忽略海拔,且LocationIsLive总为 false。