La foto del luogo esistente restituisce un'immagine bitmap.
Aggiungi foto (nuova) restituisce un URI dell'immagine.
La foto del luogo esistente supportava una dimensione massima di 1600 x 1600 pixel. La funzionalità Inserisci foto (nuova) supporta dimensioni fino a 4800 x 4800 pixel.
Se l'oggetto PhotoMetadata restituito include attribuzioni o l'attribuzione dell'autore, devi includere queste attribuzioni nella tua applicazione ovunque mostri l'immagine. Consulta la documentazione sulle
attribuzione.
[null,null,["Ultimo aggiornamento 2025-02-28 UTC."],[[["Places SDK for Android now supports a new version of Place Photo with an updated pricing model and a new method for retrieving photos."],["The new Place Photo returns a URI to the image instead of a bitmap, supports larger photo sizes (up to 4800x4800 pixels), and requires enabling Places API (New)."],["To request a photo, use the `PlacesClient.fetchResolvedPhotoUri()` method with a `FetchResolvedPhotoUriRequest` object."],["The response includes `PhotoMetadata` containing author attributions that must be displayed when showing the image."],["Initialize your app with `Places.initializeWithNewPlacesApiEnabled()` to access the new author attributions in `PhotoMetadata`."]]],["The new Place Photo feature in Places SDK for Android requires enabling Places API (New). Key changes include a new pricing model, returning a URI instead of a bitmap, and supporting larger images (up to 4800x4800 pixels). Use `PlacesClient.fetchResolvedPhotoUri()` for requests, passing a `FetchResolvedPhotoUriRequest` object. Photo metadata includes new `AuthorAttributions`, which must be displayed with the image. `Places.initializeWithNewPlacesApiEnabled()` must be called to access the author attributions. Using `PlacesClient.fetchPhoto()` requires enabling **Places API**.\n"]]