取得裝置相機's 地理空間轉換功能
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
只要在應用程式設定使用 Geospatial API,就能取得裝置相機的 GAREarth.cameraGeospatialTransform
。這個轉換由 GAREarth
物件管理,包含以下資訊:
- 以經緯度表示的位置
- 海拔高度
- 這個方向會預估使用者在 EUS 座標系統中面對的方向,X+ 指向東、Y+ 朝上,Z+ 則指向南方
調整姿勢,提高準確性
當裝置朝著預設方向直立時,傾斜 (X+) 和滾動 (Z+) 角經常會十分精確,這是為了與 AR 追蹤自然對齊。不過,偏轉 (Y+) 角度可能會因該位置的 VPS 資料可用性和時間條件而有所不同。您的應用程式可能需要進行修正,確保準確性。
GARGeospatialTransform.orientationYawAccuracy
提供 GARGeospatialTransform.eastUpSouthQTarget
的不確定半徑 (以度為單位)。這個值代表本地層級偏轉 (Y+) 角度的預估標準差。
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-08 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]