LocationResult Record

Description

位置读数。

latitude, longitude单位为度。

altitude单位为米。

horizontalAccuracy为水平方向精度,单位为米。

verticalAccuracy为重力方向精度,单位为米。

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