Method: photos.batchGet
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Permintaan HTTP
GET https://streetviewpublish.googleapis.com/v1/photos:batchGet
URL menggunakan sintaksis gRPC Transcoding.
Parameter kueri
Parameter |
photoIds[] |
string
Wajib. ID Photos . Untuk permintaan GET HTTP, parameter kueri URL harus photoIds=<id1>&photoIds=<id2>&... .
|
view |
enum (PhotoView )
Wajib. Menentukan apakah URL download untuk byte foto harus ditampilkan dalam respons Foto.
|
languageCode |
string
Opsional. Kode bahasa BCP-47, seperti "en-US" atau "sr-Latn". Untuk informasi selengkapnya, lihat http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Jika languageCode tidak ditentukan, preferensi bahasa pengguna untuk layanan Google akan digunakan.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Respons untuk batch get Photos
.
Jika berhasil, isi respons memuat data dengan struktur berikut:
Kolom |
results[] |
object (PhotoResponse )
Daftar hasil untuk setiap Photo yang diminta, dalam urutan yang sama seperti permintaan di photos.batchGet .
|
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/streetviewpublish
Untuk informasi selengkapnya, lihat Ringkasan OAuth 2.0.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003eRetrieves metadata for multiple photos using their IDs via a \u003ccode\u003eGET\u003c/code\u003e request to the specified endpoint.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing photo IDs and view preference via query parameters, and an empty request body.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of results, each corresponding to a requested photo, and indicating success or failure.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is required using the \u003ccode\u003ehttps://www.googleapis.com/auth/streetviewpublish\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eIf the batch request fails, it may be due to missing fields or authentication errors, while individual photos may have separate failures detailed within the response.\u003c/p\u003e\n"]]],["This document details the process for retrieving metadata of multiple Street View photos via the `photos.batchGet` method. A `GET` request to `https://streetviewpublish.googleapis.com/v1/photos:batchGet` is required. The request must include `photoIds` and a `view` parameter in the query, and optionally a `languageCode`. The request body should be empty. The response body returns a list of `PhotoResponse` objects containing the requested photo metadata. The request requires `https://www.googleapis.com/auth/streetviewpublish` OAuth scope.\n"],null,[]]