संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यूरोपियन इकनॉमिक एरिया (ईईए) के डेवलपर
Places SDK for Android (New) से बेहतर परफ़ॉर्मेंस मिलती है. साथ ही, इसमें नया प्राइसिंग मॉडल भी उपलब्ध है. इसलिए, Places SDK for Android (Legacy) का इस्तेमाल करने वाले ऐप्लिकेशन को अपडेट करना फ़ायदेमंद है. सुविधाओं की तुलना करने के बारे में ज़्यादा जानने के लिए, एसडीके चुनें लेख पढ़ें.
इस गाइड का इस्तेमाल करके, Places SDK for Android (नया) और Places SDK for Android (लेगसी) के बीच के मुख्य अंतरों के बारे में जानें. साथ ही, ज़रूरी बदलावों को मैनेज करने का तरीका जानें.
माइग्रेशन के लिए बिलिंग के सबसे सही तरीके
warning_amber
यह दिशा-निर्देश तब लागू होता है, जब आपके एपीआई इस्तेमाल करने की दर इतनी ज़्यादा हो कि आपको दूसरे टियर की कीमत पर जाना पड़े. एपीआई के नए वर्शन पर माइग्रेट करने पर,
आपको किसी दूसरे एसकेयू के लिए भी बिल भेजा जाता है. ट्रांज़िशन के दौरान, महीने के आखिर में ज़्यादा शुल्क न लगे, इसके लिए हमारा सुझाव है कि आप महीने की शुरुआत में ही नए एपीआई पर स्विच कर लें. इससे यह पक्का होगा कि माइग्रेशन के महीने में, आपको हर महीने के सबसे किफ़ायती प्राइसिंग टियर मिलें. शुल्क के टियर के बारे में जानकारी पाने के लिए, शुल्क वाला पेज और शुल्क के बारे में अक्सर पूछे जाने वाले सवाल देखें.
Places SDK for Android (नया) चालू करना
Places SDK for Android (लेगसी), Places API सेवा पर निर्भर करता है. Places SDK for Android (New) की सुविधाओं का इस्तेमाल करने के लिए, आपको सबसे पहले अपने Google Cloud प्रोजेक्ट में Places API (New) चालू करना होगा. ज़्यादा जानकारी के लिए, Google Cloud प्रोजेक्ट सेट अप करना लेख पढ़ें.
इसके बाद, आपको यह पक्का करना होगा कि आपने अपने ऐप्लिकेशन में इस्तेमाल किए गए एपीआई पासकोड में Places API (नया) जोड़ा हो. ज़्यादा जानकारी के लिए, एपीआई पासकोड इस्तेमाल करना लेख पढ़ें.
सामान्य बदलाव
कुछ सामान्य बदलाव ऐसे हैं जो कई एपीआई पर लागू होते हैं. इनमें ये शामिल हैं:
अनुरोधों को तय करने या जवाब में नए फ़ील्ड जोड़ने के लिए, नई क्लास जोड़ी गई हैं.
जवाब Place ऑब्जेक्ट में, नया getReviews() तरीका शामिल होता है. यह तरीका, Review ऑब्जेक्ट की सूची दिखाता है. अगर आपका ऐप्लिकेशन, Place
ऑब्जेक्ट से मिली जानकारी दिखाता है, जैसे कि फ़ोटो और समीक्षाएं, तो ऐप्लिकेशन को ज़रूरी एट्रिब्यूशन भी दिखाने होंगे.
ज़्यादा जानकारी के लिए, एट्रिब्यूशन के बारे में दस्तावेज़ देखें.
एपीआई से जुड़े बदलाव
इस सेक्शन में, हर एपीआई के लिए माइग्रेशन की ये गाइड शामिल हैं:
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-09-04 (UTC) को अपडेट किया गया."],[],[],null,["# Migration overview\n\n**European Economic Area (EEA) developers** If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](/maps/comms/eea/faq).\n\nThe Places SDK for Android (New) provides improved performance and a new\npricing model, making it worthwhile to update apps that use the\nPlaces SDK for Android (Legacy). For more details on comparing features,\nsee [Choose your SDK](/maps/documentation/places/android-sdk/choose-sdk).\n\nUse this guide to understand key differences in the\nPlaces SDK for Android (New) compared to the\nPlaces SDK for Android (Legacy), along with how to handle necessary\nchanges.\n\n\nBilling best practices for migration\n------------------------------------\n\nwarning_amber\n\nThis guidance applies if your API usage is high enough to\nmove into second-tier pricing. When migrating to a newer version of an API,\nyou're also being billed for a different SKU. To avoid increased costs during the month of\nyour transition, we recommend switching to the new APIs in production as close to the\nbeginning of the month as possible. This will ensure that you reach the most cost-effective\nmonthly pricing tiers during the migration month. For information about pricing tiers,\nsee the [pricing page](/maps/billing-and-pricing/pricing)\nand the [pricing FAQ](/maps/billing-and-pricing/faq).\n\n\u003cbr /\u003e\n\nEnable Places SDK for Android (New)\n-----------------------------------\n\nPlaces SDK for Android (Legacy) relies on the\n**Places API** service. To use the features of\nPlaces SDK for Android (New), you must first enable\n**Places API (New)** in your Google Cloud project. For more\ninformation, see [Set up your Google Cloud\nproject](/maps/documentation/places/android-sdk/cloud-setup).\n\nYou then must ensure that you have added **Places API\n(New)** to the API key used by your app. For more information, see [Use API\nKeys](/maps/documentation/places/android-sdk/get-api-key).\n\nGeneral changes\n---------------\n\nSome general changes that apply to multiple APIs include:\n\n- Uses a new pricing model. For pricing information for all APIs, see [Places SDK for Android\n (New)](/maps/billing-and-pricing/pricing#places-pricing).\n\n- [Place Details\n (New)](/maps/documentation/places/android-sdk/place-details), [Nearby Search\n (New)](/maps/documentation/places/android-sdk/nearby-search), and [Text Search\n (New)](/maps/documentation/places/android-sdk/text-search) require field\n masks to specify which fields you want returned in the response.\n\n- New classes have been added to define the requests or to add new fields to\n the response.\n\n- The response [`Place`](/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place)\n object contains the new\n [`getReviews()`](/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place#getReviews())\n method that returns a List of\n [`Review`](/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Review)\n objects. When your app displays information obtained from the `Place`\n object, such as photos and reviews, the app must also display the required\n attributions.\n\n For more information, see the documentation on\n [attributions](/maps/documentation/places/android-sdk/policies#other_attribution_requirements).\n\n| **Note:** Because Text Search (New) and Nearby Search (New) were added to Places SDK for Android and did not replace any existing APIs, there is no migration required to use them.\n\nAPI-specific changes\n--------------------\n\nThis section includes the following migration guides for each API:\n\n- [Migrate to Place Details (New)](/maps/documentation/places/android-sdk/migrate-details)\n- [Migrate to Place Photo (New)](/maps/documentation/places/android-sdk/migrate-photo)\n- [Migrate to Autocomplete (New)](/maps/documentation/places/android-sdk/migrate-autocomplete)"]]