Stay organized with collections
Save and categorize content based on your preferences.
GAREarth
Provides localization ability in Geospatial coordinates.
To use GAREarth
, configure the GARSession
with an appropriate GARGeospatialMode
using GARSessionConfiguration.geospatialMode
and setConfiguration:error: (GARSession)
.
Summary
Inheritance
Inherits from:
NSObject
Properties
trackingState
The current state of tracking for GAREarth
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-14 UTC.
[null,null,["Last updated 2025-07-14 UTC."],[[["\u003cp\u003eGAREarth provides localization capabilities using geospatial coordinates.\u003c/p\u003e\n"],["\u003cp\u003eTo enable GAREarth, configure the GARSession with the desired GARGeospatialMode.\u003c/p\u003e\n"],["\u003cp\u003eGAREarth provides access to the device's global transform, Earth state, and tracking state through its properties.\u003c/p\u003e\n"],["\u003cp\u003eThe cameraGeospatialTransform property provides the device's location and orientation in global coordinates when tracking is active.\u003c/p\u003e\n"],["\u003cp\u003eThe earthState and trackingState properties indicate the current status of Earth tracking and overall tracking quality.\u003c/p\u003e\n"]]],[],null,["# GAREarth Class Reference\n\nGAREarth\n========\n\nProvides localization ability in Geospatial coordinates.\n\nTo use [GAREarth](/ar/reference/ios/interface/GAREarth#interface_g_a_r_earth), configure the [GARSession](/ar/reference/ios/interface/GARSession#interface_g_a_r_session) with an appropriate [GARGeospatialMode](/ar/reference/ios/group/GARGeospatialMode#gargeospatialmode) using [GARSessionConfiguration.geospatialMode](/ar/reference/ios/category/GARSessionConfiguration(Geospatial)#geospatialmode) and [setConfiguration:error: (GARSession)](/ar/reference/ios/interface/GARSession#setconfiguration:error:).\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: `NSObject`\n\n| ### Properties ||\n|---------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [cameraGeospatialTransform](#camerageospatialtransform) | [GARGeospatialTransform](/ar/reference/ios/interface/GARGeospatialTransform#interface_g_a_r_geospatial_transform)` *` The current global transform of the device. |\n| [earthState](#earthstate) | [GAREarthState](/ar/reference/ios/group/GAREarthState#garearthstate) The current Earth state. |\n| [trackingState](#trackingstate) | [GARTrackingState](/ar/reference/ios/group/GARTrackingState#gartrackingstate) The current state of tracking for [GAREarth](/ar/reference/ios/interface/GAREarth#interface_g_a_r_earth). |\n\nProperties\n----------\n\n### cameraGeospatialTransform\n\n```transact-sql\n@property(nonatomic, readonly, nullable) /ar/reference/ios/interface/GARGeospatialTransform#interface_g_a_r_geospatial_transform */ar/reference/ios/interface/GAREarth#camerageospatialtransform;\n``` \nThe current global transform of the device.\n\nIf [trackingState](/ar/reference/ios/interface/GAREarth#trackingstate) is not [GARTrackingStateTracking](/ar/reference/ios/group/GARTrackingState#gartrackingstatetracking), this will be nil. \n\n### earthState\n\n```transact-sql\n@property(nonatomic, readonly) /ar/reference/ios/group/GAREarthState#garearthstate /ar/reference/ios/interface/GAREarth#earthstate;\n``` \nThe current Earth state. \n\n### trackingState\n\n```transact-sql\n@property(nonatomic, readonly) /ar/reference/ios/group/GARTrackingState#gartrackingstate /ar/reference/ios/interface/GAREarth#trackingstate;\n``` \nThe current state of tracking for [GAREarth](/ar/reference/ios/interface/GAREarth#interface_g_a_r_earth)."]]