إعداد "حزمة تطوير البرامج بالاستناد إلى بيانات خرائط Google" لنظام التشغيل Android
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يوضّح هذا المستند المتطلبات الأساسية لاستخدام "حزمة تطوير البرامج بالاستناد إلى بيانات خرائط Google" لنظام التشغيل Android، وكيفية تفعيلها، ثم كيفية إرسال طلب مصادقة.
checklist
تأكَّد من استيفاء الشروط الأساسية.
settings
فعِّل حزمة تطوير البرامج (SDK) في مشروعك على Google Cloud.
verified_user
اضبط مفتاح واجهة برمجة التطبيقات لاستخدامه مع "حزمة تطوير البرامج بالاستناد إلى بيانات خرائط Google" لنظام التشغيل Android.
تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eAn API key is required to use the Maps SDK for Android and can be created through the Google Cloud Console or the Cloud SDK.\u003c/p\u003e\n"],["\u003cp\u003eBefore using the API key in production, it's crucial to restrict it for security by specifying allowed Android apps and APIs.\u003c/p\u003e\n"],["\u003cp\u003eRestricting the API key involves providing the package name and SHA-1 certificate fingerprint of your Android application.\u003c/p\u003e\n"],["\u003cp\u003eThe same API key can be used for both the Maps SDK for Android and Places SDK for Android applications.\u003c/p\u003e\n"],["\u003cp\u003eAfter obtaining and restricting the API key, proceed to set up and configure your Android Studio project.\u003c/p\u003e\n"]]],["To use the Maps SDK, you need an API key, created via the Google Cloud Console or Cloud SDK. The Console method involves navigating to the Credentials page and creating an API key. The Cloud SDK uses the `gcloud services api-keys create` command. Restrict API keys for security, selecting \"Android apps\" and adding the package name and SHA-1 certificate fingerprint. Use separate keys for each app and platform. You can also do this using Cloud SDK, with `gcloud services api-keys update`.\n"],null,["This document describes the prerequisites for using the Maps SDK for Android, 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 Maps SDK for Android. |"]]