docs/channels/location.md
OpenClaw normalizes shared locations from chat channels into:
Currently supported:
m.location with geo_uri)locationMessage + liveLocationMessage)Locations are rendered as friendly lines without brackets. Coordinates use six decimal places; accuracy is rounded to whole meters:
📍 48.858844, 2.294351 ±12m📍 48.858844, 2.294351 ±12m🛰 Live location: 48.858844, 2.294351 ±12mIf the channel includes a label, address, or caption/comment, it is preserved in the context payload and appears in the prompt as fenced untrusted JSON (fields are omitted when absent):
Location (untrusted metadata):
```json
{
"latitude": 48.858844,
"longitude": 2.294351,
"accuracy_m": 12,
"source": "place",
"name": "Eiffel Tower",
"address": "Champ de Mars, Paris",
"caption": "Meet here"
}
```
When a location is present, these fields are added to ctx:
LocationLat (number)LocationLon (number)LocationAccuracy (number, meters; optional)LocationName (string; optional)LocationAddress (string; optional)LocationSource (pin | place | live)LocationIsLive (boolean)LocationCaption (string; optional)When the channel does not set an explicit source, OpenClaw infers it: live shares become live, locations with a name or address become place, everything else is pin.
The prompt renderer treats LocationName, LocationAddress, and LocationCaption as untrusted metadata and serializes them through the same bounded JSON path used for other channel context.
title/address map to LocationName/LocationAddress; no live locations.geo_uri is parsed as a pin location; the u (uncertainty) parameter maps to LocationAccuracy, the event body populates LocationCaption, altitude is ignored, and LocationIsLive is always false.LocationName/LocationAddress; live locations are detected via live_period.locationMessage.comment and liveLocationMessage.caption populate LocationCaption.