Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
W tym dokumencie opisujemy wymagania wstępne dotyczące korzystania z pakietu SDK Miejsc na iOS, sposób jego włączania i wysyłania uwierzytelnionych żądań.
checklist
Sprawdź, czy spełniasz wymagania wstępne.
settings
włączyć pakiet SDK w projekcie Google Cloud;
verified_user
Skonfiguruj klucz interfejsu API do użycia z pakietem Places SDK na iOS.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]