GeoDistance

class GeoDistance(value: Int, unit: GeoDistanceUnit)

Create instances using the Int extensions. Example:

val walkingDistance = 400.meters
val marathon = 42_195.meters
val averageElectricCarRange = 181.miles
val berlinToLondon = 1_100.kilometers

Constructors

Link copied to clipboard
fun GeoDistance(value: Int, unit: GeoDistanceUnit)

Types

Link copied to clipboard
object Companion

Functions

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

Properties

Link copied to clipboard
val unit: GeoDistanceUnit
Link copied to clipboard
val value: Int

Extensions

Link copied to clipboard
infix fun GeoDistance.from(point: GeoPoint): GeoCircle