AFGeoLocation

class AFGeoLocation(var latitude: Double? = null, var longitude: Double? = null, var accuracy: Float? = null, val timestampMillis: Long? = null)

Platform-agnostic representation of location.

This data class encapsulates geographical coordinates (latitude and longitude) along with optional information about accuracy and the timestamp when the location was recorded. It can be populated from platform-specific location objects like CLLocation (iOS) or android.location.Location (Android).

Constructors

Link copied to clipboard
constructor(latitude: Double? = null, longitude: Double? = null, accuracy: Float? = null, timestampMillis: Long? = null)

Properties

Link copied to clipboard

The estimated horizontal accuracy of this location, radial, in meters. null if not available.

Link copied to clipboard

The geographical latitude, in degrees.

Link copied to clipboard

The geographical longitude, in degrees.

Link copied to clipboard

The time at which this location was fixed, in milliseconds since the epoch. null if not available.

Functions

Link copied to clipboard
open override fun toString(): String