Method: photo.update
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bir Photo
öğesinin poz, yer ilişkilendirmesi, bağlantılar gibi meta verilerini günceller. Fotoğrafın piksellerini değiştirme desteklenmiyor.
Yalnızca updateMask
alanında belirtilen alanlar kullanılır. updateMask
mevcut değilse güncelleme tüm alanlara uygulanır.
Bu yöntem aşağıdaki hata kodlarını döndürür:
HTTP isteği
PUT https://streetviewpublish.googleapis.com/v1/photo/{photo.photoId.id}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
photo.photoId.id |
string
Fotoğraf için benzersiz bir tanımlayıcı.
|
Sorgu parametreleri
Parametreler |
updateMask |
string (FieldMask format)
Zorunlu. Fotoğraf meta verilerinde güncellenecek alanları tanımlayan maske. Bu istekteki mevcut değilse eski Photo meta verileri, bu istekte tamamen yeni Photo meta verileriyle değiştirilir. Geçersiz alanlar belirtilirse güncelleme başarısız olur. Virgülle ayrılmış bir listede birden çok alan belirtilebilir. Aşağıdaki alanlar geçerlidir:
pose.heading
pose.lat_lng_pair
pose.pitch
pose.roll
pose.level
pose.altitude
connections
places
Not: updateMask yinelenen alanlar içerdiğinde, tekrarlanan değer grubunun tamamı yeni içeriklerle değiştirilir. Örneğin, updateMask içinde connections bulunuyorsa ve UpdatePhotoRequest.photo.connections boşsa tüm bağlantılar kaldırılır.
|
İstek içeriği
İstek metni, Photo
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, Photo
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/streetviewpublish
Daha fazla bilgi için OAuth 2.0'a Genel Bakış başlıklı makaleye bakın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2023-12-01 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2023-12-01 UTC."],[[["Updates a Photo's metadata, such as pose, connections, and places, but not the image pixels themselves."],["Uses an `updateMask` to specify which fields to update; if omitted, all fields are updated."],["Requires the `https://www.googleapis.com/auth/streetviewpublish` OAuth scope for authorization."],["Returns the updated Photo object if successful."],["May return errors if permissions are lacking, the request is invalid, the Photo doesn't exist, or is still being indexed."]]],["This describes how to update a photo's metadata using the Street View Publish API. It uses a `PUT` request to a specific URL with a photo ID in the path. The `updateMask` query parameter specifies which metadata fields to modify. The request body contains the new metadata, and the response body returns the updated photo. Key metadata includes pose, connections, and places. Authorization requires a specific OAuth scope. Possible errors include permission, invalid argument, not found, or unavailability.\n"]]