Constructs a new LocationMessage.
Optional
properties:
ILocationMessage
Properties to set
LocationMessage accuracyInMeters.
LocationMessage address.
LocationMessage comment.
Optional
contextLocationMessage contextInfo.
LocationMessage degreesClockwiseFromMagneticNorth.
LocationMessage degreesLatitude.
LocationMessage degreesLongitude.
LocationMessage isLive.
LocationMessage jpegThumbnail.
LocationMessage name.
LocationMessage speedInMps.
LocationMessage url.
Static
create
Creates a new LocationMessage instance using the specified properties.
Optional
properties:
ILocationMessage
Properties to set
LocationMessage instance
Static
decode
Decodes a LocationMessage message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length:
number
Message length if known beforehand
LocationMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a LocationMessage message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
LocationMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
encode
Encodes the specified LocationMessage message. Does not implicitly verify messages.
LocationMessage message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
encodeEncodes the specified LocationMessage message, length delimited. Does not implicitly verify messages.
LocationMessage message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
fromCreates a LocationMessage message from a plain object. Also converts values to their respective internal types.
Plain object
LocationMessage
Static
toCreates a plain object from a LocationMessage message. Also converts values to other types if specified.
LocationMessage
Optional
options:
IConversionOptions
Conversion options
Plain object
Static
verify
Generated using TypeDoc
Represents a LocationMessage.