기기 카메라의 지리정보 변환 가져오기
Geospatial API를 사용하도록 앱 설정을 구성한 후에는 기기 카메라의 GAREarth.cameraGeospatialTransform
를 가져올 수 있습니다. GAREarth
객체에서 관리되는 이 변환에는 다음 정보가 포함됩니다.
- 위도 및 경도로 표현된 위치
- 고도
- EUS 좌표계에서 X+가 동쪽을, Y+가 위쪽을, Z+가 남쪽을 가리키는 사용자의 방향을 근사하는 방향입니다.
정확하게 촬영할 수 있도록 포즈를 조정하세요.
기기가 기본 방향으로 세워져 있으면 AR 추적과의 자연스러운 정렬로 인해 피치 (X+) 및 롤 (Z+) 각도가 정확한 경향이 있습니다. 하지만 요각 (Y+) 각도는 VPS 데이터 가용성과 위치의 시간적 조건에 따라 달라질 수 있습니다. 앱에서 정확성을 위해 조정해야 할 수 있습니다.
GARGeospatialTransform.orientationYawAccuracy
는 GARGeospatialTransform.eastUpSouthQTarget
의 불확실성 반경을 도 단위로 제공합니다. 이 값은 국소 수준 요 (Y+) 각도 추정치의 표준 편차를 나타냅니다.
다음 단계
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-08(UTC)
[null,null,["최종 업데이트: 2024-11-08(UTC)"],[[["Access the device camera's geospatial transform to get the user's location, altitude, and orientation in the real world."],["Adjust the yaw angle for accuracy as it can vary due to VPS data availability and local conditions."],["The `GARGeospatialTransform.orientationYawAccuracy` property provides the uncertainty radius for the yaw angle estimate."],["Use the geospatial data to place anchors and interact with the real-world environment through your AR app."]]],[]]