동영상이 없는 경우 (lookupVideoMetadata가 404를 반환함) renderVideo를 호출하여 새 동영상을 생성합니다.
videoId 또는 주소를 사용하여 lookupVideoMetadata를 호출하여 동영상 상태가 ACTIVE가 될 때까지 엔드포인트를 폴링합니다. 렌더링하는 데 몇 시간이 걸릴 수 있으므로 지수 백오프를 사용하여 호출 간격을 둡니다.
동영상이 활성 상태인 경우 (lookupVideoMetadata가 ACTIVE 상태를 반환함) lookupVideo를 호출하여 동영상의 URI를 가져옵니다.
이 워크플로는 아래 다이어그램에 나와 있습니다.
나중에 사용하기 위해 동영상 ID 저장
Aerial View API의 서비스별 약관에 따라 Aerial View API 동영상 ID에는 Google Maps Platform 서비스 약관의 3.2.3(b)(캐싱 불가)항에 명시된 캐싱 제한사항이 적용되지 않습니다. 따라서 나중에 사용하기 위해 동영상 ID 값을 저장할 수 있습니다.
[null,null,["최종 업데이트: 2025-01-14(UTC)"],[[["The Aerial View API offers two workflows: one for retrieving existing videos and another for generating new ones."],["To determine if a video exists for a location, utilize the `lookupVideoMetadata` function."],["If a video doesn't exist, initiate video generation using the `renderVideo` function and monitor its status with `lookupVideoMetadata` until it becomes active."],["Once the video is active, retrieve its URLs via the `lookupVideo` function for access and use."],["Aerial View API video IDs can be stored for future use, unlike other Google Maps Platform content."]]],[]]