One Logo Pool Ball
ARKit · IOS API REFERENCE

ARGeoAnchor

class · iOS 14.0+ · SDK 27.1

class ARGeoAnchor

Members (6)

init · iOS 14.0+

init

TypeScript
static initNameCoordinateAltitude(name: string, coordinate: { latitude: number; longitude: number }, altitude: number): ARGeoAnchor
Swift declaration
init(name: String, coordinate: CLLocationCoordinate2D, altitude: CLLocationDistance)
get · iOS 14.0+

altitudeSource

TypeScript
get altitudeSource(): ARGeoAnchor_AltitudeSource
Swift declaration
var altitudeSource: ARGeoAnchor.AltitudeSource { get }
get · iOS 14.0+

coordinate

TypeScript
get coordinate(): { latitude: number; longitude: number }
Swift declaration
var coordinate: CLLocationCoordinate2D { get }
init · iOS 14.0+

init

TypeScript
static initCoordinateAltitude(coordinate: { latitude: number; longitude: number }, altitude?: (number) | null): ARGeoAnchor
Swift declaration
@nonobjc convenience init(coordinate: CLLocationCoordinate2D, altitude: CLLocationDistance? = nil)

Creates a geographic anchor at the specified coordinate and optional altitude. - Parameters: - coordinate: The geographic coordinate (latitude and longitude). - altitude: The altitude in meters above mean sea level. If `nil`, the altitude will be determined automatically.

init · iOS 14.0+

init

TypeScript
static initNameCoordinateAltitude88158(name: string, coordinate: { latitude: number; longitude: number }, altitude?: (number) | null): ARGeoAnchor
Swift declaration
@nonobjc convenience init(name: String, coordinate: CLLocationCoordinate2D, altitude: CLLocationDistance? = nil)

Creates a named geographic anchor at the specified coordinate and optional altitude. - Parameters: - name: A descriptive name for the anchor. - coordinate: The geographic coordinate (latitude and longitude). - altitude: The altitude in meters above mean sea level. If `nil`, the altitude will be determined automatically.

get · iOS 14.0+

altitude

TypeScript
get altitude(): (number) | null
Swift declaration
@nonobjc var altitude: CLLocationDistance? { get }

The altitude of the anchor in meters, or `nil` if the altitude is unknown.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ARGeoAnchor.init()

inherited init: cannot prove legal (class declares 3 custom initializers)

All ARKit types →