স্থানের ফটো (উত্তরাধিকার) থেকে স্থানের ফটোতে স্থানান্তর করুন (নতুন)

ইউরোপীয় অর্থনৈতিক অঞ্চল (EEA) ডেভেলপাররা

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 PhotoMetadata object. For Places SDK for Android (New) the PhotoMetadata object contains a new PhotoMetadata.getAuthorAttributions() method that returns an object of type AuthorAttributions .

    If the returned PhotoMetadata object 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 PhotoMetadata you must initialize your app by calling the Places.initializeWithNewPlacesApiEnabled() method. For more information on selecting the Places API service, see Set up your Google Cloud project .

উদাহরণ অনুরোধ

একটি সম্পূর্ণ উদাহরণের জন্য, প্লেস ফটোস (নতুন) দেখুন।