Android के लिए Places SDK टूल, मौजूदा जगह की फ़ोटो के साथ काम करता है.
अगर आपको जगह की मौजूदा फ़ोटो के बारे में पता है, तो जगह की फ़ोटो के नए वर्शन में ये बदलाव किए गए हैं:
जगह की मौजूदा फ़ोटो, बिटमैप इमेज दिखाती है.
जगह की फ़ोटो (नया) फ़ंक्शन, इमेज का यूआरआई दिखाता है.
जगह की मौजूदा फ़ोटो का ज़्यादा से ज़्यादा साइज़ 1600 x 1600 पिक्सल था. जगह की फ़ोटो (नया) के लिए, ज़्यादा से ज़्यादा 4800 x 4800 पिक्सल का साइज़ इस्तेमाल किया जा सकता है.
Places API को चालू करने के बाद ही, PlacesClient.fetchPhoto() तरीका इस्तेमाल किया जा सकता है. अगर सिर्फ़ Places API (नया) चालू किया जाता है, तो यह तरीका उपलब्ध नहीं होता.
अगर दिखाए गए PhotoMetadata ऑब्जेक्ट में एट्रिब्यूशन या लेखक का एट्रिब्यूशन शामिल है, तो आपको अपने ऐप्लिकेशन में इमेज दिखाने के लिए, इन एट्रिब्यूशन को शामिल करना होगा. एट्रिब्यूशन के बारे में दस्तावेज़ देखें.
[null,null,["आखिरी बार 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"]]