SDK Địa điểm dành cho Android hỗ trợ Ảnh địa điểm (Cũ).
Nếu bạn đã quen với tính năng Ảnh địa điểm (cũ), thì Ảnh địa điểm (mới) sẽ có những thay đổi sau:
Nếu đối tượng PhotoMetadata được trả về có bất kỳ thuộc tính ghi công nào hoặc thuộc tính ghi công tác giả, thì bạn phải đưa các thuộc tính ghi công này vào ứng dụng của mình bất cứ khi nào bạn hiển thị hình ảnh. Xem tài liệu về thuộc tính.
[null,null,["Cập nhật lần gần đây nhất: 2025-03-21 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"]]