Coordinate

constructor(point: Point, levels: Levels = Levels.Outdoor, altitude: Double? = null, bearing: Double? = null, horizontalAccuracy: Double = 0.0, timestamp: Long = System.currentTimeMillis(), heightFromFloor: Double? = null, heightFromGround: Double? = null)


constructor(latitude: Double, longitude: Double, levels: Levels = Levels.Outdoor, altitude: Double? = null, bearing: Double? = null, horizontalAccuracy: Double = 0.0, timestamp: Long = System.currentTimeMillis(), heightFromFloor: Double? = null, heightFromGround: Double? = null)

Builds a coordinate from raw latitude/longitude with optional indoor levels and altitude.

Parameters

latitude

The latitude in degrees.

longitude

The longitude in degrees.

levels

The indoor levels this coordinate belongs to. Levels.Outdoor when outdoor.

altitude

The altitude in meters, if any.

bearing

The horizontal direction of travel in degrees, if any.

horizontalAccuracy

The horizontal accuracy radius in meters.

timestamp

The Unix epoch time of this fix, in milliseconds.

heightFromFloor

Height from the floor of the defined level.

heightFromGround

Height from the ground of the defined level.


constructor(latitude: Double, longitude: Double, level: Float, altitude: Double? = null)

Builds a coordinate from raw latitude/longitude placed on a single indoor level.

Parameters

latitude

The latitude in degrees.

longitude

The longitude in degrees.

level

The single indoor level this coordinate belongs to.

altitude

The altitude in meters, if any.


constructor(latitude: Double, longitude: Double, range: ClosedRange<Float>, altitude: Double? = null)

Builds a coordinate from raw latitude/longitude spanning a range of indoor levels.

Parameters

latitude

The latitude in degrees.

longitude

The longitude in degrees.

range

The range of indoor levels this coordinate spans.

altitude

The altitude in meters, if any.


constructor(location: Location, levels: Levels = Levels.Outdoor, heightFromFloor: Double? = null, heightFromGround: Double? = null)

Wraps an Android Location, keeping altitude and bearing only when Location reports them valid.

Parameters

location

The underlying location holding the position primitives.

levels

The indoor levels this coordinate belongs to. Levels.Outdoor when outdoor.

heightFromFloor

Height from the floor of the defined level.

heightFromGround

Height from the ground of the defined level.