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/07/27 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/27 (UTC)."],[[["This guide explains how to create and restrict API keys for the Places SDK for iOS, enabling authentication and billing for your application."],["You 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."],["Restricting 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."],["For iOS, restriction involves specifying bundle identifiers and enabling the Places API under API restrictions in the Google Cloud Console."],["Once you have your API key, you can proceed to set up and configure your Xcode project for integration with the Places SDK."]]],["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"]]