LocationResult Record

Description

Location reading.

The unit of latitude, longitude is meter.

The unit of altitude is meter.

The unit of horizontalAccuracy is meter.

verticalAccuracy is the accuracy in the direction of gravity of earth, and its unit is meter.

latitude

C

double latitude

C++

double latitude

Java

public double latitude

Kotlin

public Double latitude

Objective-C

@property (nonatomic) double latitude

Swift

public var latitude: Double

C#

public double latitude

longitude

C

double longitude

C++

double longitude

Java

public double longitude

Kotlin

public Double longitude

Objective-C

@property (nonatomic) double longitude

Swift

public var longitude: Double

C#

public double longitude

altitude

C

double altitude

C++

double altitude

Java

public double altitude

Kotlin

public Double altitude

Objective-C

@property (nonatomic) double altitude

Swift

public var altitude: Double

C#

public double altitude

horizontalAccuracy

C

double horizontalAccuracy

C++

double horizontalAccuracy

Java

public double horizontalAccuracy

Kotlin

public Double horizontalAccuracy

Objective-C

@property (nonatomic) double horizontalAccuracy

Swift

public var horizontalAccuracy: Double

C#

public double horizontalAccuracy

verticalAccuracy

C

double verticalAccuracy

C++

double verticalAccuracy

Java

public double verticalAccuracy

Kotlin

public Double verticalAccuracy

Objective-C

@property (nonatomic) double verticalAccuracy

Swift

public var verticalAccuracy: Double

C#

public double verticalAccuracy

hasAltitude

C

bool hasAltitude

C++

bool hasAltitude

Java

public boolean hasAltitude

Kotlin

public Boolean hasAltitude

Objective-C

@property (nonatomic) bool hasAltitude

Swift

public var hasAltitude: Bool

C#

public bool hasAltitude

hasHorizontalAccuracy

C

bool hasHorizontalAccuracy

C++

bool hasHorizontalAccuracy

Java

public boolean hasHorizontalAccuracy

Kotlin

public Boolean hasHorizontalAccuracy

Objective-C

@property (nonatomic) bool hasHorizontalAccuracy

Swift

public var hasHorizontalAccuracy: Bool

C#

public bool hasHorizontalAccuracy

hasVerticalAccuracy

C

bool hasVerticalAccuracy

C++

bool hasVerticalAccuracy

Java

public boolean hasVerticalAccuracy

Kotlin

public Boolean hasVerticalAccuracy

Objective-C

@property (nonatomic) bool hasVerticalAccuracy

Swift

public var hasVerticalAccuracy: Bool

C#

public bool hasVerticalAccuracy