Places SDK for Android supports Place Photo (Legacy) . If you are familiar with Place Photo (Legacy), Place Photo (New) makes the following changes:
একটি নতুন মূল্য নির্ধারণ মডেল ব্যবহার করা হয়েছে। সমস্ত এপিআই-এর মূল্য সংক্রান্ত তথ্যের জন্য, প্লেসেস এসডিকে ফর অ্যান্ড্রয়েড (নিউ) দেখুন।
Place Photo (Legacy) একটি বিটম্যাপ ইমেজ ফেরত দেয়। Place Photo (New) ইমেজটির একটি URI ফেরত দেয়।
প্লেস ফটো (লেগ্যাসি) সর্বোচ্চ ১৬০০ বাই ১৬০০ পিক্সেল আকারের ছবি সমর্থন করত। প্লেস ফটো (নিউ) ৪৮০০ বাই ৪৮০০ পিক্সেল পর্যন্ত আকার সমর্থন করে।
অনুরোধ করার জন্য, নতুন
PlacesClient.fetchResolvedPhotoUri()মেথডটি কল করুন।আরও তথ্যের জন্য, এপিআই কী ব্যবহার দেখুন।
অনুরোধে নতুন
FetchResolvedPhotoUriRequestক্লাসের একটি অবজেক্ট প্রেরণ করুন।Each photo in the response is represented by a
PhotoMetadataobject. For Places SDK for Android (New) thePhotoMetadataobject contains a newPhotoMetadata.getAuthorAttributions()method that returns an object of typeAuthorAttributions.If the returned
PhotoMetadataobject includes any attributions or author attribution, you must include these attributions in your application wherever you display the image. See the documentation on attributions .To access the new author attributions in
PhotoMetadatayou must initialize your app by calling thePlaces.initializeWithNewPlacesApiEnabled()method. For more information on selecting the Places API service, see Set up your Google Cloud project .
উদাহরণ অনুরোধ
একটি সম্পূর্ণ উদাহরণের জন্য, প্লেস ফটোস (নতুন) দেখুন।