Method: photo.create
क्लाइंट, वापस मिली UploadRef
की मदद से फ़ोटो अपलोड करने के बाद, photo.create
अपलोड की गई Photo
को Google Maps पर Street View में पब्लिश करता है.
फ़िलहाल, फ़ोटो बाइट में मौजूद फ़ोटो स्फ़ीर XMP मेटाडेटा की मदद से ही, photo.create में हेडिंग, पिच, और रोल सेट किया जा सकता है. photo.create, पोज़ में मौजूद pose.heading
, pose.pitch
, pose.roll
, pose.altitude
, और pose.level
फ़ील्ड को अनदेखा करता है.
इस तरीके से, गड़बड़ी के ये कोड मिलते हैं:
एचटीटीपी अनुरोध
POST https://streetviewpublish.googleapis.com/v1/photo
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में Photo
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब होने पर, जवाब के मुख्य हिस्से में Photo
का नया इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/streetviewpublish
ज़्यादा जानकारी के लिए, OAuth 2.0 की खास जानकारी देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-06 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-06 (UTC) को अपडेट किया गया."],[[["`photo.create` publishes a 360 photo to Street View on Google Maps after it's been uploaded using an UploadRef."],["Currently, heading, pitch, and roll can only be set through Photo Sphere XMP metadata within the photo itself."],["This method may return errors if the request is malformed, photo isn't 360, upload reference is invalid, or storage limit is reached."],["Requires `https://www.googleapis.com/auth/streetviewpublish` OAuth scope for authorization."],["Uses a POST request to `https://streetviewpublish.googleapis.com/v1/photo` with the Photo details in the request body."]]],["Clients upload a photo using `UploadRef`, then use `photo.create` to publish the `Photo` to Google Maps. Heading, pitch, and roll must be set in the Photo Sphere XMP metadata. The request URL is `POST https://streetviewpublish.googleapis.com/v1/photo`. The request body includes a `Photo` instance, and a successful response returns a created `Photo` instance. It requires the `streetviewpublish` OAuth scope and can return `INVALID_ARGUMENT`, `NOT_FOUND`, or `RESOURCE_EXHAUSTED` error codes.\n"]]