|
|
@ -34,10 +34,10 @@ extensible event types when available.
|
|
|
|
XXX: should description be localised?
|
|
|
|
XXX: should description be localised?
|
|
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
```json
|
|
|
|
"m.location": {
|
|
|
|
"m.location": {
|
|
|
|
"uri": "geo:51.5008,0.1247;u=35",
|
|
|
|
"uri": "geo:51.5008,0.1247;u=35",
|
|
|
|
"description": "Our destination",
|
|
|
|
"description": "Our destination",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
If sharing the location of an object, one would add another subtype (e.g. a
|
|
|
|
If sharing the location of an object, one would add another subtype (e.g. a
|
|
|
@ -54,15 +54,15 @@ Example for sharing a static location:
|
|
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"type": "m.location",
|
|
|
|
"type": "m.location",
|
|
|
|
"content": {
|
|
|
|
"content": {
|
|
|
|
"m.location": {
|
|
|
|
"m.location": {
|
|
|
|
"uri": "geo:51.5008,0.1247;u=35",
|
|
|
|
"uri": "geo:51.5008,0.1247;u=35",
|
|
|
|
"description": "Matthew's whereabouts",
|
|
|
|
"description": "Matthew's whereabouts",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"m.ts": 1636829458432,
|
|
|
|
"m.ts": 1636829458432,
|
|
|
|
"m.text": "Matthew was at geo:51.5008,0.1247;u=35 as of Sat Nov 13 18:50:58 2021"
|
|
|
|
"m.text": "Matthew was at geo:51.5008,0.1247;u=35 as of Sat Nov 13 18:50:58 2021"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
@ -74,10 +74,10 @@ annotations than location sharing. It would look something like this if we
|
|
|
|
used it:
|
|
|
|
used it:
|
|
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
```json
|
|
|
|
"m.geo": {
|
|
|
|
"m.geo": {
|
|
|
|
"type": "Point",
|
|
|
|
"type": "Point",
|
|
|
|
"coordinates": [30.0, 10.0]
|
|
|
|
"coordinates": [30.0, 10.0]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Another design choice is to represent static shared locations as a normal room
|
|
|
|
Another design choice is to represent static shared locations as a normal room
|
|
|
|