Companion

object Companion

Functions

Link copied to clipboard
fun create(position: Point, horizontalAccuracy: Double, verticalAccuracy: Double, speed: Double, course: Double, lastKnown: Boolean = false, timestamp: Instant = Instant.now(), additionalSourceProperties: Map<String, Any> = emptyMap()): Location

Creates a location object with timestamp and additional source properties. A Location can be created from a variety of sources and using different technologies. By supplying Location.additionalSourceProperties you can allow users of this Location to find out how the data was captured.