قبل از شروع استفاده از Places SDK برای iOS، به پروژه ای نیاز دارید که دارای حساب صورتحساب باشد و Places SDK برای iOS فعال باشد. برای کسب اطلاعات بیشتر، به راه اندازی در کنسول Cloud مراجعه کنید.
ایجاد کلیدهای API
کلید API یک شناسه منحصر به فرد است که درخواست های مرتبط با پروژه شما را برای اهداف استفاده و صورتحساب احراز هویت می کند. شما باید حداقل یک کلید API مرتبط با پروژه خود داشته باشید.
Google اکیداً توصیه میکند که کلیدهای API خود را با محدود کردن استفاده از آنها به آن دسته از APIهای مورد نیاز برای برنامهتان محدود کنید. محدود کردن کلیدهای API با محافظت از برنامه شما در برابر درخواستهای غیرمجاز، امنیت را به آن اضافه میکند. شما مسئول هزینه های ناشی از سوء استفاده از کلیدهای نامحدود API هستید. برای اطلاعات بیشتر، بهترین شیوه های امنیتی API را ببینید.
تاریخ آخرین بهروزرسانی 2025-03-07 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-03-07 بهوقت ساعت هماهنگ جهانی."],[[["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"]]