Position

@JsonClass(generateAdapter = true)
data class Position(@Json(name = "LatLng") val latLng: String, val accuracyMeters: Int, val altitudeMeters: Double, val source: String, val timestamp: String, val speedMetersPerSecond: Double)

Represents a position with latitude/longitude, accuracy, altitude, source, timestamp, and speed.

Example JSON:

{
"LatLng": "40.712776°, -74.005974°",
"accuracyMeters": 5,
"altitudeMeters": 10.0,
"source": "GPS",
"timestamp": "2023-10-01T08:00:00.000Z",
"speedMetersPerSecond": 1.5
}

Constructors

Link copied to clipboard
constructor(@Json(name = "LatLng") latLng: String, accuracyMeters: Int, altitudeMeters: Double, source: String, timestamp: String, speedMetersPerSecond: Double)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard