تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تطلب الطريقة
renderVideo
إنشاء فيديو يعرض صورًا جوية لعنوان بريدي محدّد في الولايات المتحدة. إذا كان الفيديو متوفّرًا مسبقًا على العنوان المحدّد، ستعرض هذه الطريقة البيانات الوصفية الخاصة بالفيديو.
كيفية استخدام واجهة برمجة التطبيقات
أنشئ فيديو جويًا جديدًا من خلال إرسال طلب HTTPS POST إلى نقطة النهاية
renderVideo، مع تمرير مفتاح واجهة برمجة التطبيقات وعنوان بريدي أمريكي، كما هو موضّح
في المثال التالي. قد تستغرق عملية العرض من ساعة إلى بضع ساعات.
يمكن أن تستغرق عملية العرض من ساعة إلى بضع ساعات. إذا كان الفيديو لا يزال قيد المعالجة، يمكنك استخدام lookupVideo للاستعلام عن حالة الفيديو إلى أن يتم عرض الحالة ACTIVE.
لإجراء استطلاع، أرسِل طلبًا إلى lookupVideo، مع تمرير videoId. قد تستغرق عملية العرض عدة ساعات، لذا استخدِم التراجع الأسي لتباعد طلباتك.
الردّ النشط
عندما تعرض renderVideo القيمة state التي تساوي ACTIVE، يعني ذلك أنّ الفيديو قد انتهى من العرض، ويمكنك استرداده من خلال استدعاء lookupVideo باستخدام videoId.
تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThe \u003ccode\u003erenderVideo\u003c/code\u003e method generates aerial view videos for US postal addresses, returning metadata if the video already exists.\u003c/p\u003e\n"],["\u003cp\u003eTo generate a new video, make an HTTPS POST request to the \u003ccode\u003erenderVideo\u003c/code\u003e endpoint with your API key and the US postal address.\u003c/p\u003e\n"],["\u003cp\u003eThe rendering process can take up to a few hours, and the response provides a \u003ccode\u003evideoId\u003c/code\u003e for retrieving the video using \u003ccode\u003elookupVideo\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eWhen the video is ready, \u003ccode\u003erenderVideo\u003c/code\u003e or \u003ccode\u003elookupVideo\u003c/code\u003e will return a state of \u003ccode\u003eACTIVE\u003c/code\u003e, indicating it's available for retrieval.\u003c/p\u003e\n"],["\u003cp\u003eAn invalid address or one outside the US will result in an error response.\u003c/p\u003e\n"]]],[],null,["The\n[`renderVideo`](/maps/documentation/aerial-view/reference/rest/v1/videos/renderVideo)\nmethod requests the generation of an aerial view video for the specified US\npostal address. If the video already exists for the specified address, then this\nmethod returns metadata about the video.\n| **Note:** This usage of `renderVideo` assumes that Google hasn't already generated the aerial view video that you need. That is, you need to generate a new aerial view video.\n\nHow to use the API\n\nGenerate a new aerial video by making an HTTPS POST request to the\n[`renderVideo`](/maps/documentation/aerial-view/reference/rest/v1/videos/renderVideo)\nendpoint, passing your [API Key](/maps/documentation/aerial-view/get-api-key) and a US postal address, as shown\nin the following example. The rendering process can take anywhere from an hour\nto a few hours.\n**Note:** There is no charge for using this endpoint. \n\n```json\ncurl -X POST -d '{\n \"address\": \"\u003cvar translate=\"no\"\u003ePOSTAL_ADDRESS\u003c/var\u003e\"\n}' \\\n-H 'Content-Type: application/json' \\\n\"https://aerialview.googleapis.com/v1/videos:renderVideo?key=\u003cvar translate=\"no\"\u003eYOUR_API_KEY\u003c/var\u003e\"\n```\n\nExample request\n\nThe following code example requests the generation of an aerial view video for\n500 W 2nd St, Austin, TX, 78701. \n\n```json\ncurl -X POST -d '{\n \"address\": \"500 W 2nd St, Austin, TX 78701\"\n}' \\\n-H 'Content-Type: application/json' \\\n\"https://aerialview.googleapis.com/v1/videos:renderVideo?key=\u003cvar translate=\"no\"\u003eYOUR_API_KEY\u003c/var\u003e\"\n```\n\nExample response\n\nThe following JSON code samples show the possible responses to the example video\nrequest.\n\nInvalid address response\n\nThe address is either incorrect, or it isn't within the United States. \n\n {\n \"error\": {\n \"code\": 400,\n \"message\": \"Address not supported.\",\n \"status\": \"INVALID_ARGUMENT\"\n }\n }\n\nProcessing response\n\nThe Aerial View API is now rendering your video. The response contains the\n`videoId`, which you can use to retrieve the video. \n\n {\n \"state\": \"PROCESSING\",\n \"metadata\": {\n \"videoId\": \"x89iJAJi1wzs7DIAFQF7Va\"\n }\n }\n\nThe rendering process can take anywhere from an hour to a few hours. If the\nvideo is still processing, you can use `lookupVideo` to poll the video status\nuntil it returns a state of `ACTIVE`.\n\nTo poll, make a request to `lookupVideo`, passing the `videoId`. Rendering can\ntake several hours, so use [exponential\nbackoff](/maps/documentation/aerial-view/web-api-best-practices#exponential-backoff) to space out your calls.\n\nActive response\n\nWhen `renderVideo` returns a `state` value of `ACTIVE`, it means the video has\nfinished rendering, and you can retrieve it by calling `lookupVideo` with the\n`videoId`. \n\n {\n \"state\": \"ACTIVE\",\n \"metadata\": {\n \"videoId\": \"x89iJAJi1wzs7DIAFQF7Va\"\n }\n }"]]