Прежде чем начать использовать Places SDK для iOS, вам потребуется проект с платёжной учётной записью и включённым Places SDK для iOS. Подробнее см. в разделе Настройка в Cloud Console .
Создание API-ключей
Ключ API — это уникальный идентификатор, который аутентифицирует запросы, связанные с вашим проектом, для целей использования и выставления счетов. С вашим проектом должен быть связан хотя бы один ключ API.
Google настоятельно рекомендует ограничить использование ключей API, ограничив их использование только теми API, которые необходимы для вашего приложения. Ограничение использования ключей API повышает безопасность вашего приложения, защищая его от несанкционированных запросов. Вы несёте финансовую ответственность за расходы, вызванные злоупотреблением использованием ключей API без ограничений. Подробнее см. в разделе «Рекомендации по безопасности API» .
[[["Прост для понимания","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-07-16 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"]]