LocationContent

@Serializable
data class LocationContent(val controlFlag: SmpContent.ControlFlag, val partnerId: Long, val latitude: Double, val longitude: Double) : SmpContent

Represents location-only content in the Satellite Message Protocol.

This class encapsulates geographical coordinates to be transmitted via satellite, along with metadata about delivery confirmation requirements and the intended recipient. Unlike TextAndLocationContent, this content type contains only location data without any accompanying text message.

Constructors

Link copied to clipboard
constructor(controlFlag: SmpContent.ControlFlag, partnerId: Long, latitude: Double, longitude: Double)

Types

Link copied to clipboard

Properties

Link copied to clipboard

The type of content represented by this instance.

Link copied to clipboard

The flag indicating what types of delivery confirmations are required.

Link copied to clipboard

The geographical latitude coordinate in decimal degrees.

Link copied to clipboard

The geographical longitude coordinate in decimal degrees.

Link copied to clipboard

The unique identifier of the message sender/recipient. Typically represented as a numeric mobile number (e.g., 11234567890 for the formatted number +1 123 456 7890).

Functions

Link copied to clipboard
fun createSmpHeader(messageCounter: Int, eventTimestamp: SmpTimestamp, version: Int = 1, ackFlag: Boolean = false): SmpHeader

Creates an SMP header for this content.