Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Das Places SDK for iOS (New) bietet eine verbesserte Leistung und ein neues Preismodell. Es lohnt sich also, Apps, in denen das Places SDK for iOS (Legacy) verwendet wird, zu aktualisieren. Weitere Informationen zum Vergleichen von Funktionen finden Sie unter SDK auswählen.
In diesem Leitfaden erfahren Sie mehr über die wichtigsten Unterschiede zwischen dem Places SDK for iOS (Neu) und dem Places SDK for iOS (Alt) sowie darüber, wie Sie notwendige Änderungen vornehmen.
Best Practices für die Abrechnung bei der Migration
warning_amber
Diese Anleitung gilt, wenn Ihre API-Nutzung hoch genug ist, um in die zweite Preisstufe zu fallen. Wenn Sie zu einer neueren Version einer API migrieren, wird Ihnen auch eine andere SKU in Rechnung gestellt. Um erhöhte Kosten im Monat der Umstellung zu vermeiden, empfehlen wir, so früh wie möglich im Monat auf die neuen APIs umzustellen. So erreichen Sie im Migrationsmonat die kostengünstigsten monatlichen Preisstufen. Informationen zu Preisstufen finden Sie auf der Seite „Preise“ und in den FAQs zu Preisen.
Fehler: kGMSPlacesRateLimitExceeded
Places SDK for iOS (New) aktivieren
Das Places SDK for iOS basiert auf dem Dienst Places API. Wenn Sie die Funktionen des Places SDK for iOS (New) verwenden möchten, müssen Sie zuerst die Places API (New) in Ihrem Google Cloud-Projekt aktivieren. Weitere Informationen finden Sie unter Google Cloud-Projekt einrichten.
Anschließend müssen Sie überprüfen, ob Sie die Places API (New) dem von Ihrer App verwendeten API-Schlüssel hinzugefügt haben. Weitere Informationen finden Sie unter API-Schlüssel verwenden.
Allgemeine Änderungen
Hier einige allgemeine Änderungen, die für mehrere APIs gelten:
GMSPlacesClient enthält neue Methoden zum Aufrufen dieser neuen APIs.
Es wurden neue Klassen hinzugefügt, um die Anfrage an die einzelnen neuen APIs zu definieren.
Die Antwortinstanz GMSPlace enthält das neue Attribut reviews vom Typ GMSPlaceReview.
Wenn in Ihrer App Informationen angezeigt werden, die von der GMSPlace-Instanz abgerufen wurden, z. B. Fotos und Rezensionen, müssen auch die erforderlichen Quellenangaben eingeblendet werden.
Weitere Informationen finden Sie in der Dokumentation zu Quellenangaben.
API-spezifische Änderungen
Dieser Abschnitt enthält die folgenden Migrationsleitfäden für jede API:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-05 (UTC)."],[],[],null,["The Places SDK for iOS (New) provides improved performance and a new\npricing model, making it worthwhile to update apps that use\nPlaces SDK for iOS (Legacy). For more details on comparing features, see\n[Choose your SDK](/maps/documentation/places/ios-sdk/choose-sdk).\n\nUse this guide to understand key differences in Places SDK for iOS\n(New) compared to Places SDK for iOS (Legacy), along with how to\nhandle necessary changes.\n\n\nBilling best practices for migration warning_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\nError: `kGMSPlacesRateLimitExceeded` **Notice:** If your iOS app is experiencing `kGMSPlacesRateLimitExceeded`\n| errors, you may be using a deprecated version of the Places API.\n| Version 2.7.0 of the Places API was deprecated as of January 29,\n| 2019, and was turned off on **July 29, 2019** . A new version of the Places API\n| is now available. We recommend updating to the new version as soon as possible.\n| For details, see the [migration\n| guide](/maps/documentation/places/ios-sdk/client-migration).\n\nEnable Places SDK for iOS (New)\n\nPlaces SDK for iOS relies on the\n**Places API** service. To use the features of\nPlaces SDK for iOS (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/ios-sdk/cloud-setup).\n\nYou then must verify 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/ios-sdk/get-api-key).\n\nGeneral changes\n\nSome general changes that apply to multiple APIs include:\n\n- Uses a new pricing model. For pricing information for all APIs, see [Pricing\n for the Places SDK for iOS\n (New)](/maps/billing-and-pricing/pricing#places-pricing).\n\n- [Place Details\n (New)](/maps/documentation/places/ios-sdk/place-details), [Nearby Search\n (New)](/maps/documentation/places/ios-sdk/nearby-search), and [Text Search\n (New)](/maps/documentation/places/ios-sdk/text-search) require field masks\n to specify which fields you want returned in the response.\n\n- [`GMSPlacesClient`](/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlacesClient)\n contains new methods to call these new APIs.\n\n- New classes have been added to define the request to each of the new APIs.\n\n- The response `GMSPlace` instance contains the new [`reviews`](/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlace#reviews)\n property of type\n [`GMSPlaceReview`](/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview).\n When your app displays information obtained from the `GMSPlace` instance,\n 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/ios-sdk/policies#other_attribution_requirements).\n\n| **Note:** Because Text Search (New) and Nearby Search (New) were added to Places SDK for iOS and did not replace any existing APIs, there is no migration required to use them.\n\nAPI-specific changes\n\nThis section includes the following migration guides for each API:\n\n- [Migrate to Place Details (New)](/maps/documentation/places/ios-sdk/migrate-details)\n- [Migrate to Place Photo (New)](/maps/documentation/places/ios-sdk/migrate-photo)\n- [Migrate to Autocomplete (New)](/maps/documentation/places/ios-sdk/migrate-autocomplete)"]]