Skip to content

makeLocationContent

makeLocationContent(text?, uri?, timestamp?, description?, assetType?): LegacyLocationEventContent & MLocationEventContent

Defined in: src/content-helpers.ts:139

Generates the content for a Location event

string

optional. A text for the location

string

a geo:// uri for the location

number

the timestamp when the location was correct (milliseconds since the UNIX epoch)

string | null

the (optional) label for this location on the map

LocationAssetType

the (optional) asset type of this location e.g. “m.self”

LegacyLocationEventContent & MLocationEventContent