Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Ce document décrit les conditions préalables à l'utilisation du SDK Places pour iOS, comment l'activer et comment effectuer une requête authentifiée.
checklist
Assurez-vous de remplir les conditions préalables.
settings
Activez le SDK dans votre projet Google Cloud.
verified_user
Configurez une clé API à utiliser avec le SDK Places pour iOS.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/31 (UTC).
[null,null,["Dernière mise à jour le 2025/08/31 (UTC)."],[[["\u003cp\u003eThis guide explains how to create and restrict API keys for the Places SDK for iOS, enabling authentication and billing for your application.\u003c/p\u003e\n"],["\u003cp\u003eYou can create API keys using the Google Cloud Console or the Cloud SDK, and you need a project with a billing account and the Places SDK enabled.\u003c/p\u003e\n"],["\u003cp\u003eRestricting API keys to your application's needs enhances security by limiting unwarranted requests, with the recommendation to use separate keys for each app and platform.\u003c/p\u003e\n"],["\u003cp\u003eFor iOS, restriction involves specifying bundle identifiers and enabling the Places API under API restrictions in the Google Cloud Console.\u003c/p\u003e\n"],["\u003cp\u003eOnce you have your API key, you can proceed to set up and configure your Xcode project for integration with the Places SDK.\u003c/p\u003e\n"]]],["This content outlines the process of creating and restricting API keys for the Google Maps Platform, specifically for the Places SDK. Key actions include navigating to the **Google Maps Platform \\\u003e Credentials** page, clicking **Create credentials \\\u003e API key,** and using the Cloud SDK. Restricting keys involves setting application restrictions (e.g., iOS bundle identifier) and API restrictions (e.g., Places API), which is vital for security and to prevent financial charges. Separate keys are encouraged per platform.\n"],null,["# Set up the Places SDK for iOS\n\nThis document describes the prerequisites for using the Places SDK for iOS, how to enable it,\nand then how to make an authenticated request.\n\n|--------------------------------------------------------------------|---|-------------------------------------------------------------------------|---|---------------------------------------------------------------------------------------------|\n| checklist 1. Prerequisites Ensure that you meet the prerequisites. | | settings 2. Enable the SDK Enable the SDK in your Google Cloud project. | | verified_user 3. Configure an API key Configure an API key for use with Places SDK for iOS. |"]]